Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon5.gif   Elog client usage, posted by Alan Grant on Fri Jul 22 00:05:02 2011 
    icon6.gif   Re: Elog client usage, posted by Andreas Luedeke on Fri Jul 22 10:31:27 2011 
       icon6.gif   Re: Elog client usage, posted by Alan Grant on Tue Jul 26 21:50:05 2011 elogd.cfg
          icon6.gif   Re: Elog client usage, posted by Andreas Luedeke on Wed Jul 27 04:36:40 2011 
             icon2.gif   Re: Elog client usage, posted by Alan Grant on Tue Aug 2 21:36:20 2011 
Message ID: 67095     Entry time: Fri Jul 22 10:31:27 2011     In reply to: 67094     Reply to this: 67096
Icon: Cool  Author: Andreas Luedeke  Author Email: andreas.luedeke@psi.ch 
Category: Info  OS: All  ELOG Version: 2.9.0 
Subject: Re: Elog client usage 

Alan Grant wrote:

I have searched the Elog forum and docs at length for actual examples of how to use the Elog client and I apologize if I missed it somehwere but could someone please provide some actual examples of how the parmeters are used? I haven't had much success setting it up just going by the Elog command syntax quide.

What I intend to do is load a raw text file into an active logbook directly, either one line at at time or batched from a text file ("m" option).

Also, I saw a Perl script contribution somewhere on the site which appears to offer the same functionality as the above util. Just wondering why there would be two methods, and which might be the best for me to use? Thank you.

I suppose you have your demon "elogd" running and you can connect to your logbook via the web interface?
Then you can use the "elog" command to upload a text file as one entry.
If you want to split the text file to one-entry-per-line, you need to write a batch script to do that.
The usage of the "elog" command is descibed in the ELOG User's Guide: https://midas.psi.ch/elog/userguide.html#misc
 
The command line for "elog" has to define all "Required attributes" with "-a ..."
 
elog -h <host> -p <port> -l <logbook> -u <user> <password> -a <attribute>=<value> -n 1 -m <text-file>
 
<port> can be omitted if port 80 is used, "-u <user> <password>" can be omitted if anonymous entry creation is allowed.
Here's an example to write to the demo logbook at midas (local text file /tmp/hello.txt contains "hello world")
elog -h midas.psi.ch -l Linux+Demo -d elogs -a Author=nobody -a Type=Other -a Category=test -a "Subject=hello" -m /tmp/hello.txt

I hope this helps.

PS: please never refer to a location as "somewhere on the site".
ELOG V3.1.5-fe60aaf