Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 33 of 807  Not logged in ELOG logo
icon5.gif   Logging entries from the command line, posted by kenzo Abrahams on Mon Oct 26 11:06:46 2015 
Good Afternoon

Im trying to automatically post an entry using information saved in a text file. I have followed the example in the users guide but i always
seem to get a error message saying transmission failed. Lets say for instance I have a user named John and his password is Blue and he wants to log into
    icon2.gif   Re: How does one create a html template for an entry, posted by kenzo Abrahams on Mon Oct 26 11:16:54 2015 
> > Good Day
> > 
> > I am new to elog and have a question. This is best explain with an example. If I have two logbooks named "home" and "work" and I would like all the
    icon2.gif   Re: Logging entries from the command line, posted by kenzo Abrahams on Mon Oct 26 11:24:46 2015 
Hi Stephan

The error message I get is "Error: Command Submit not allowed". I dont know if this might be an issue but it says Response Recieved:
HTTP/1.1 404 Not Found in the first line of the servers response
    icon2.gif   Re: Logging entries from the command line, posted by kenzo Abrahams on Mon Oct 26 12:17:40 2015 
Yes I can it works perfectly from the browser.




Stefan
Ritt wrote:



This indicates that the username/password is not correct. Can you log
    icon2.gif   Re: Logging entries from the command line, posted by kenzo Abrahams on Mon Oct 26 12:26:03 2015 
Hi Stephan I got it to work for some reason elog was complaining that my encoding of the message wasnt allowed. I allowed the lognook to allow ELcode
and it works perfectly.

Thank you for the help.
icon5.gif   running more then one shell command when new entries is submitted, posted by kenzo Abrahams on Tue Oct 27 11:03:49 2015 
Hi

Im just curious is it possible to run more then one command using Execute new = <command> or will i have to run a script to run muliple
commands.
    icon2.gif   Re: running more then one shell command when new entries is submitted, posted by kenzo Abrahams on Tue Oct 27 11:14:16 2015 
The reason why im asking if it can be done using the Execute option is because I need to have the message id of the entry that was submitted and in an
external script i dont have access to the variable




kenzo
    icon2.gif   Re: running more then one shell command when new entries is submitted, posted by kenzo Abrahams on Tue Oct 27 11:23:36 2015 
If i put the ';' into Execute the rest of the command becomes a comment thats why i was trying to use '&&' instead. If I encapulate
the whole command in "" or '' then both commands are executed but the files im trying to write to gets created but no data is piped into
it. When I use Execute with one command and pipe its output to a file everything works fine though.
ELOG V3.1.5-3fb85fa6