Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon1.gif   elog command line submission, posted by Erik Butz on Thu Nov 4 13:23:50 2010 
    icon2.gif   Re: elog command line submission, posted by Stefan Ritt on Tue Nov 16 13:25:35 2010 
Message ID: 66940     Entry time: Tue Nov 16 13:25:35 2010     In reply to: 66923
Icon: Reply  Author: Stefan Ritt  Author Email: stefan.ritt@psi.ch 
Category: Question  OS: Linux  ELOG Version: V2.7.6-219 
Subject: Re: elog command line submission 
> Hi, 
> 
> I am playing with the elog automatic subscription script, but somehow I am failing in submitting an entry. 
> I am using a syntax as this:
> 
> echo test | elog -h 127.0.0.1 -p 8085 -d /usr/local/elogbooks/Elog -l "Sub Elog" -a "Type=MyType" -x -u user passwd
> 
> and I get a message which says: 
> "cannot get host name: Success"
> 
> which seems contradictory and also there is no entry submitted. 
> 
> The command is executed on the host where the elog is running, the port and directory are taken from the cfg File. 
> 
> What is my mistake, where is my misunderstanding of the documentation?
> 
> Any hints appreciated. 
> 
> Erik

The "-d" option is certainly wrong. This is only used when running elog under Apache. But otherwise it should work. I 
tried it myself and it went fine. Try to add a "-v" flag to see verbose output.
ELOG V3.1.5-fe60aaf