ID |
Date |
Icon |
Author |
Author Email |
Category |
OS |
ELOG Version |
Subject |
66852
|
Wed Jul 21 16:26:17 2010 |
| soren poulsen | soren.poulsen@cern.ch | Question | Linux | 2.7.8 | Subst variables and Execute |
Hi
I am trying to use this line from the documentation:
Execute new = echo "New message wiht ID $message id of type $type from $long_name on $remote_host" >> /tmp/elog.log
It does not seem to have the intended effect (of printing a line with the message id, etc in the file /tmp/elog.log
)
How can I make this line work ?
Soren
|
66853
|
Wed Jul 21 16:38:05 2010 |
| Stefan Ritt | stefan.ritt@psi.ch | Question | Linux | 2.7.8 | Re: Subst variables and Execute |
soren poulsen wrote: |
Hi
I am trying to use this line from the documentation:
Execute new = echo "New message wiht ID $message id of type $type from $long_name on $remote_host" >> /tmp/elog.log
It does not seem to have the intended effect (of printing a line with the message id, etc in the file /tmp/elog.log
)
How can I make this line work ?
Soren
|
Have you started the server with the "-x" flag as written in the documentation? |
66854
|
Thu Jul 22 00:31:54 2010 |
| David McKee | dmckee@phys.ksu.edu | Question | All | 2.7 | What *exactly* do "clone" and "mirror" do? |
We have been hosting logbook far (geographically and in internet hops) from our experimental site. Recently we have (finally!) gotten reliable on-site internet, and would like to host the log book on-site.
I have a suspicion that some combination of the -C, -m, and -M flags will allow me to migrate the logbook automagically and with a minimum risk of trouble from concurrent operation on the logbook, and to maintain the existing version as a mirror of the new official on-site version. But documentation is not being very helpful. Can someone say a few more words about what these options do?
I've been experimenting as I compose this and have a suggestion for language that might be useful somewhere in the documentation:
In this context "to clone" means to copy the configuration file and all data files associated with a log book so that I can host an identical logbook on a new host (that is this is the command to migrate a logbook). After cloning the two installation are identical, but no effort is made to keep them so: if you continue to run both copies post made to one will not be reflected in the other.
Is this correct?
I'm still not clear on what the -m and -M options do. |
66855
|
Thu Jul 22 10:17:29 2010 |
| soren poulsen | soren.poulsen@cern.ch | Question | Linux | 2.7.8 | Re: Subst variables and Execute |
Stefan Ritt wrote: |
soren poulsen wrote: |
Hi
I am trying to use this line from the documentation:
Execute new = echo "New message wiht ID $message id of type $type from $long_name on $remote_host" >> /tmp/elog.log
It does not seem to have the intended effect (of printing a line with the message id, etc in the file /tmp/elog.log
)
How can I make this line work ?
Soren
|
Have you started the server with the "-x" flag as written in the documentation?
|
Thanks a lot for replying despite the heat. Yes, I executed with the "-x" flag.
It is just a quoting problem, I guess. This line works:
Execute new = echo New message with ID $message id of type $type from $long_name on $remote_host >> /tmp/elog.log
It evaluates to:
SHELL "echo New message with ID 24706 of type elogtype from Soren Poulsen on 137.138.22.11 >> /tmp/elog.log"
So next step is to replace "new" with "edit" and "delete".
That works as well.
Soren
|
66856
|
Thu Jul 22 15:51:50 2010 |
| Andreas Luedeke | andreas.luedeke@psi.ch | Question | Linux | 2.7.8 | Re: drop in replacement for FCKeditor? |
Bill Pier wrote: |
Stefan Ritt wrote: |
Bill Pier wrote: |
Is it possible to use a drop-in replacement for the FCKeditor?
|
What is a drop-in replacement?
|
A configuration option to specify a different/alternate javascript based editor.
|
There is an firefox addon "It's all text" that allows you to call your own editor for all textarea fields in the browser.
If you then choose "plain" or "ELCode" encoding in ELOG for a new entry or to modifiy an existing entry, you can use your favourite editor to edit the entry by an new "EDIT" button associated with the textarea input field. It works simply by temporary files.
Not really a "drop-in" replacement, but similar.
|
66858
|
Mon Jul 26 11:41:44 2010 |
| soren poulsen | soren.poulsen@cern.ch | Question | Linux | 2.7.8 | Re: Subst variables and Execute |
soren poulsen wrote: |
Stefan Ritt wrote: |
soren poulsen wrote: |
Hi
I am trying to use this line from the documentation:
Execute new = echo "New message wiht ID $message id of type $type from $long_name on $remote_host" >> /tmp/elog.log
It does not seem to have the intended effect (of printing a line with the message id, etc in the file /tmp/elog.log
)
How can I make this line work ?
Soren
|
Have you started the server with the "-x" flag as written in the documentation?
|
Thanks a lot for replying despite the heat. Yes, I executed with the "-x" flag.
It is just a quoting problem, I guess. This line works:
Execute new = echo New message with ID $message id of type $type from $long_name on $remote_host >> /tmp/elog.log
It evaluates to:
SHELL "echo New message with ID 24706 of type elogtype from Soren Poulsen on 137.138.22.11 >> /tmp/elog.log"
So next step is to replace "new" with "edit" and "delete".
That works as well.
Soren
|
There is sometimes a problem with substitutions like "Execute delete = echo $message id".
It seems the problem is that if you delete a logbook entry that is not created with the current logbook attributes, the substitution variables are replaced with the variable name, and not the variable value.
In this example, according to the log file it becomes SHELL "message id" instead of SHELL "234", if the logbook entry is 234.
Soren |
66859
|
Tue Jul 27 10:46:27 2010 |
| Johan Schuring | johan.schuring@getronics.com | Question | All | 2.7.5 | Mail when elog entry is expired |
Hi,
Is it possible to set a timestamp on an elog entry say for about 5 days in the future, when it is expired and there are no modifications with the entry you will get a mail.
I cannot find it with search in this forum or is the guides.
It can be very handy when it is possible.
When it is not available, is it possible to make a feature request for it.
Thank you,
Johan |
66860
|
Tue Jul 27 11:35:40 2010 |
| Stefan Ritt | stefan.ritt@psi.ch | Question | All | 2.7.5 | Re: Mail when elog entry is expired |
Johan Schuring wrote: |
Hi,
Is it possible to set a timestamp on an elog entry say for about 5 days in the future, when it is expired and there are no modifications with the entry you will get a mail.
I cannot find it with search in this forum or is the guides.
It can be very handy when it is possible.
When it is not available, is it possible to make a feature request for it.
|
This is not possible at the moment. Sounds to me more like a calendar function. What you could do however is to define an attribute of type "datetime", which you can populate with the expiration date. Then you can do a search to look for entries which are past the expiration date. But you have to do that manually like once per day or so. |