ID |
Date |
Icon |
Author |
Author Email |
Category |
OS |
ELOG Version |
Subject |
67893
|
Mon May 11 13:15:54 2015 |
| Stefan Ritt | stefan.ritt@psi.ch | Question | Linux | 3.1 | Re: Remote entries with empty messages possible? |
The "command does not respond" means that the program starts reading in the main message text from the console. You can type several lines of text, and finish it off by hitting Ctrl-D (Ctrl-Z under Windows).
I see your point of having empty texts. Indeed the "" on the command line does not work presently, so you have to add a space as a workaround. I modified the elog code (committeed to bitbucket repository) to accept "" as empty text to suit your needs.
/Stefan
Edmund Hertle wrote: |
Hey,
I want to submit an entry to elog remotley using the "elog" command. For example:
elog -h elog-server-adress -l EO -a Fill=111
But this does not generate a new entry. Instead the terminal jumps to an empty new line and the command does not respond to any further inputs anymore (CTRL+C to get out). I have to add a message:
elog -h elog-server-adress -l EO -a Fill=111 "test"
also using an empty string does not work:
elog -h elog-server-adress -l EO -a Fill=111 ""
I could add a whitespace as a work-around, but I'm not sure if this is a bug or a feature.
To put this in some context: I want to create entries for certain measurements automatically, where all relevant parameters are already attribute fields. In the usual case the actual message will be empty but might be used if the operator wants to add a note after the meausrement has been done.
|
|
67895
|
Mon May 11 22:51:44 2015 |
| Andreas Luedeke | andreas.luedeke@psi.ch | Question | Linux | 3.1 | Re: Remote entries with empty messages possible? |
Hi Edmund,
Stefan already supplied a fix, but you could as well use a workaround: provide an empty file as text. The following works for Linux:
elog -h elog-server-adress -l EO -a Fill=111 -m /dev/null
Cheers
Andreas
Edmund Hertle wrote: |
Hey,
I want to submit an entry to elog remotley using the "elog" command. For example:
elog -h elog-server-adress -l EO -a Fill=111
But this does not generate a new entry. Instead the terminal jumps to an empty new line and the command does not respond to any further inputs anymore (CTRL+C to get out). I have to add a message:
elog -h elog-server-adress -l EO -a Fill=111 "test"
also using an empty string does not work:
elog -h elog-server-adress -l EO -a Fill=111 ""
I could add a whitespace as a work-around, but I'm not sure if this is a bug or a feature.
To put this in some context: I want to create entries for certain measurements automatically, where all relevant parameters are already attribute fields. In the usual case the actual message will be empty but might be used if the operator wants to add a note after the meausrement has been done.
|
|
852
|
Fri Dec 17 23:20:02 2004 |
| Stefan Ritt | stefan.ritt@psi.ch | Bug report | Windows | 2.5.5-2 | Re: Redirect to wrong hostname |
> I think you should be using tcp_hostname instead of gethostname if it is
> specified.
Sorry my late reply, I was ill for some time. I implemented your suggestion in
revision 1.522 which is available from CVS.
Note that there is also the "URL = xxx" option in the configuration file which
lets you specify the whole URL including the host name. |
856
|
Sun Dec 19 19:00:06 2004 |
| Ulrich Trüssel | ulrich.truessel@familienhund.ch | Bug report | Windows | 2.5.5-2 | Re: Redirect to wrong hostname |
know that illness... :-( but was the last of the family of 4 people
i'd like to ask for an other usefull change togehter with this and how url's are
handled by elog:
since there may be spaces in the name of a logbook (ex. "1stWordOfLogbook
2ndWordOfLogbook") it is very userfriendly to name logbooks. also it's easy th
make a reference for a other entry by copy and paste:
Display ThisURL = http://localhost:8080/$logbook/$message id
however, using spaces in the logbook name may give a wrong result, because the
url would be http://localhost:8080/1stWordOfLogbook
and the space as well as the 2ndWordOfLogbook//$message id is only normal text.
may it be possible stefan, to replace the space in an url (starting
with "http://") with a "+" or "%20"? this would allow to automate some things.
actual the logbook name has to be hardcoded.
> > I think you should be using tcp_hostname instead of gethostname if it is
> > specified.
>
> Sorry my late reply, I was ill for some time. I implemented your suggestion in
> revision 1.522 which is available from CVS.
>
> Note that there is also the "URL = xxx" option in the configuration file which
> lets you specify the whole URL including the host name. |
858
|
Mon Dec 20 17:18:16 2004 |
| Stefan Ritt | stefan.ritt@psi.ch | Bug report | Windows | 2.5.5-2 | Re: Redirect to wrong hostname |
Ok, I changed that in version 2.5.5-3. Note that one can also use the "elog:..."
substitution, like
Display ThisURL = elog:$logbook/$message id |
66793
|
Thu Apr 22 12:29:05 2010 |
| Stefan Ritt | stefan.ritt@psi.ch | Question | Linux | 2.7.7 | Re: Recursively open a new attribute of the same type |
Diogo Alves wrote: |
Hi,
I have a logbook which, among other things, contains these attributes:
Options Ingredient = Egg, Oil
Options Quantity = 2, 0.1L
Now, I would like to, every time I select an ingredient and respective quantity, that another Ingredient and Quantity field opens up for me to procede addind them.
I've searched in the documentation and found nothing related to this. Maybe I missed it. Is it possible to do this?
Also, is there a way to display 2 attributes in the same row? Messing with CSS is probably the only answer ... correct?
|
Recursive attributes are not possible. All you can do is to define a certain number (like Ingredient1, Ingredient2, Ingredient3) and use Conditional Attributes to show them using the "Show Attributes Edit = ..." option.
To display two attributes in the same row, use
Format <attribute> = 1
for the second attribute. |
66795
|
Fri Apr 23 08:32:10 2010 |
| Diogo Alves | diogomiguelalves@gmail.com | Question | Linux | 2.7.7 | Re: Recursively open a new attribute of the same type |
Stefan Ritt wrote: |
Diogo Alves wrote: |
Hi,
I have a logbook which, among other things, contains these attributes:
Options Ingredient = Egg, Oil
Options Quantity = 2, 0.1L
Now, I would like to, every time I select an ingredient and respective quantity, that another Ingredient and Quantity field opens up for me to procede addind them.
I've searched in the documentation and found nothing related to this. Maybe I missed it. Is it possible to do this?
Also, is there a way to display 2 attributes in the same row? Messing with CSS is probably the only answer ... correct?
|
Recursive attributes are not possible. All you can do is to define a certain number (like Ingredient1, Ingredient2, Ingredient3) and use Conditional Attributes to show them using the "Show Attributes Edit = ..." option.
To display two attributes in the same row, use
Format <attribute> = 1
for the second attribute.
|
Ok, thank you for your answer.
I guess my next question is whether it is possible to have, for example, 2 attributes:
Options Ingredient1 =
Options Ingredient2 =
Extendable options = Ingredients1, Ingredients2
sharing the exact same possible list of values.
Thanks agin. |
66796
|
Fri Apr 23 08:33:53 2010 |
| Stefan Ritt | stefan.ritt@psi.ch | Question | Linux | 2.7.7 | Re: Recursively open a new attribute of the same type |
Diogo Alves wrote: |
I guess my next question is whether it is possible to have, for example, 2 attributes:
Options Ingredient1 =
Options Ingredient2 =
Extendable options = Ingredients1, Ingredients2
sharing the exact same possible list of values.
|
If you add via an option to one Ingredient, you have to add it to the other as well. There is no automatic way to do that. |