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: 67097     Entry time: Wed Jul 27 04:36:40 2011     In reply to: 67096     Reply to this: 67099
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:

Andreas Luedeke wrote:

Alan Grant wrote:

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). [...]

[...] The usage of the "elog" command is descibed in the ELOG User's Guide: https://midas.psi.ch/elog/userguide.html#misc

[...] I typed the following, observing case sensitivity, then press enter and at this point it just hangs:
elog -h localhost -p 8080 -l Tartan+Tow+Log -d elog -a Ticket+date="Jul26/11"
You wrote you want to upload a text file, then you need to add at the end "-m <file>". E.g. if the text-file is named "C:text.txt", then write:

elog -h localhost -p 8080 -l Tartan+Tow+Log -d elog -a Ticket+date="Jul26/11" -n 1 -m C:text.txt
The "-n 1" is just to tell elog to upload plain text. If you do not specify "-m <file>" then it expects input from a pipe and therefore hangs. If you don't know what "input from a pipe" means then ALWAYS use the "-m <file>" option.
 
PS: if "Ticket date" is of the format "date" then it is sensitive to the formatting of the date string. "Jul26/11" is likely not a legal date format. Better do not specify it for the first test. Write instead:
elog -h localhost -p 8080 -l Tartan+Tow+Log -d elog -n 1 -m C:text.txt
PPS: do you really use a sub-directory "elog" instead of the default location "logbooks" for your ELOG logbook files? If not, then leave out this option, too.
elog -h localhost -p 8080 -l Tartan+Tow+Log -n 1 -m C:text.txt
ELOG V3.1.5-fe60aaf