ID |
Date |
Icon |
Author |
Author Email |
Category |
OS |
ELOG Version |
Subject |
68196
|
Fri Nov 20 11:20:49 2015 |
| Paolo Franchini | p.franchini@warwick.ac.uk | Question | Windows | 2.5.2 | Re: can attrinute fields contain more that one line | > > > Was just wondering about the status of the multi-line attributes in Elog, are
> > > they implemented in elog yet? If not is that something you are planning to do
> > > in the future?
> >
> > In order to have multi-line attributes, the whole format of the logbooks has to be
> > changed. I plan to use XML for the logbook format in the future. We would not have
> > any more one file per day, but one big file per logbook. I have already some XML
> > functionality in elog, but this one requires a major rewrite of the whole code. On
> > the other hand, searching etc. will become much faster afterwards. I plan to start
> > this development soon, but it might take quite some time, so don't expect it
> > before summer or fall.
> >
> > Best regards,
> >
> > Stefan
>
> Thanks for your help, thats useful to know.
>
> Paul
Hi Stefan,
any update on the multi-line request?
cheers,
Paolo |
68198
|
Fri Nov 20 12:41:58 2015 |
| Stefan Ritt | stefan.ritt@psi.ch | Question | Windows | 2.5.2 | Re: can attrinute fields contain more that one line | > > > > Was just wondering about the status of the multi-line attributes in Elog, are
> > > > they implemented in elog yet? If not is that something you are planning to do
> > > > in the future?
> > >
> > > In order to have multi-line attributes, the whole format of the logbooks has to be
> > > changed. I plan to use XML for the logbook format in the future. We would not have
> > > any more one file per day, but one big file per logbook. I have already some XML
> > > functionality in elog, but this one requires a major rewrite of the whole code. On
> > > the other hand, searching etc. will become much faster afterwards. I plan to start
> > > this development soon, but it might take quite some time, so don't expect it
> > > before summer or fall.
> > >
> > > Best regards,
> > >
> > > Stefan
> >
> > Thanks for your help, thats useful to know.
> >
> > Paul
>
> Hi Stefan,
>
> any update on the multi-line request?
Nope. Too many other things to do during my "day job".
Stefan |
68199
|
Fri Nov 20 15:27:12 2015 |
| Paolo Franchini | p.franchini@warwick.ac.uk | Question | Windows | 2.5.2 | Re: can attrinute fields contain more that one line | > > > > > Was just wondering about the status of the multi-line attributes in Elog, are
> > > > > they implemented in elog yet? If not is that something you are planning to do
> > > > > in the future?
> > > >
> > > > In order to have multi-line attributes, the whole format of the logbooks has to be
> > > > changed. I plan to use XML for the logbook format in the future. We would not have
> > > > any more one file per day, but one big file per logbook. I have already some XML
> > > > functionality in elog, but this one requires a major rewrite of the whole code. On
> > > > the other hand, searching etc. will become much faster afterwards. I plan to start
> > > > this development soon, but it might take quite some time, so don't expect it
> > > > before summer or fall.
> > > >
> > > > Best regards,
> > > >
> > > > Stefan
> > >
> > > Thanks for your help, thats useful to know.
> > >
> > > Paul
> >
> > Hi Stefan,
> >
> > any update on the multi-line request?
>
> Nope. Too many other things to do during my "day job".
>
> Stefan
Thank you, your eLog is already a very good instrument! |
2027
|
Tue Oct 31 22:07:06 2006 |
| Steve Jones | steve.jones@freescale.com | Question | Linux | 2.6.2-1739 | Re: calling a shell in the Options tag |
Alexandre Lindote wrote: | Hi,
is it possible to run a shell script in an "Options" tag, as it is with the "Preset", "Subst", and so on?
I need to have something like this:
Options Update of = $shell(/home/alex/zeplin3/elog/z3elog-mirror/documents/ext_docs.sh MinGen)
the script returns a line with comma separated values...
Thanks
Alex |
Steve Jones wrote: |
Alex, have you tried it? Novel idea!
|
|
2029
|
Wed Nov 1 09:53:05 2006 |
| Alexandre Lindote | alex@lipc.fis.uc.pt | Question | Linux | 2.6.2-1739 | Re: calling a shell in the Options tag |
Steve Jones wrote: |
Alexandre Lindote wrote: | Hi,
is it possible to run a shell script in an "Options" tag, as it is with the "Preset", "Subst", and so on?
I need to have something like this:
Options Update of = $shell(/home/alex/zeplin3/elog/z3elog-mirror/documents/ext_docs.sh MinGen)
the script returns a line with comma separated values...
Thanks
Alex |
Steve Jones wrote: |
Alex, have you tried it? Novel idea!
|
|
Yes, I have. It doesn't seem to... 
I just get one option, which is the shell line itself.
Something like:
--- Please select ---
$shell(/home/alex/zeplin3/elog/z3elog-mirror/documents/ext_docs.sh MinGen)
Cheers
Alex |
2056
|
Thu Nov 9 20:59:01 2006 |
| Stefan Ritt | stefan.ritt@psi.ch | Question | Linux | 2.6.2-1739 | Re: calling a shell in the Options tag |
Alexandre Lindote wrote: | Hi,
is it possible to run a shell script in an "Options" tag, as it is with the "Preset", "Subst", and so on?
I need to have something like this:
Options Update of = $shell(/home/alex/zeplin3/elog/z3elog-mirror/documents/ext_docs.sh MinGen)
the script returns a line with comma separated values...
Thanks
Alex |
Interesting idea, but substitutions only work for config setting where the documentation explicitly states so. The complete list comes here:
- Preset <attibute>
- Preset on reply <attribute>
- Preset on duplicate <attribute>
- Subst <attribute>
- Subst on reply <attribute>
- Subst on edit <attribute>
- Change <attribute>
- Email <attribute> <value>
- Use email from
- Use Email heading
- Use Email subject
- Bottom text
- Top text
- Edit page title
- Prepend on edit
- Append on edit
- Append on reply
- Quote on reply
- Preset text
- Page title
- RSS title
- List page title
Doing shell execution for all configuration settings would slow down the server too much. |
197
|
Mon Jan 13 11:45:18 2003 |
| Stefan Ritt | stefan.ritt@psi.ch | Request | | | Re: call a shell from ELOG / new button [Submit & Notify] | I put this on the wish list.
- Stefan |
67767
|
Mon Jan 26 15:56:41 2015 |
| Andreas Luedeke | andreas.luedeke@psi.ch | Question | All | 3.3 | Re: calculate the value of one attribute depending upon the value of other attribute. | If you have the following elogd.cfg:
Attributes = START, END, DURATION
subst DURATION = $shell( /usr/local/elog/diff.sh \"$START\" \"$END\")
Show Attributes Edit = START, END
And the shell script /usr/local/elog/diff.sh is:
#!/bin/sh
s1=$(date -d "$1" +%s)
s2=$(date -d "$2" +%s)
d=$(echo "($s2-$s1)/3600"|bc -lq)
printf "%.0f hours" $d
Then DURATION is calculated from START and END in full hours.
It appears that if you define START and END as "datetime", then only the date part would be passed to the script. This may is a bug of elogd: Stefan, have you ever tried?
dev wrote: |
I HAVE A LOGBOOK WHICH KEEPS THE RECORD OF ALL FAULT BOOKED BY DIFFERENT SUBSCRIBER.THIS LOGBOOK HAS THREE ATTRIBUTE DOWNTIME,UPTIME & TOTAL DURATION (DATE &TIME FORMAT) . I WANT TO CALCULATE THE TOTAL DURATION AUTOMATICALLY WHENEVR UPTIME VALUE IS GIVEN AND IF THE UPTIME IS NOT GIVEN IT SHOULD CALCULATE DEPENDING UPON THE SYSTEM PRESENT TIME.PLEAS EXPLAIN IT WITH EXAMPLE.
|
PS: Please do NOT write all capital text in a forum. Thank you! |
|