Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon5.gif   mysql in execute, posted by Stefan Kanitz on Fri Dec 12 08:57:41 2008 
    icon2.gif   Re: mysql in execute, posted by Stefan Ritt on Fri Dec 12 09:16:19 2008 
       icon2.gif   Re: mysql in execute, posted by Stefan Kanitz on Sat Dec 13 14:31:53 2008 
Message ID: 66111     Entry time: Fri Dec 12 09:16:19 2008     In reply to: 66110     Reply to this: 66113
Icon: Reply  Author: Stefan Ritt  Author Email: stefan.ritt@psi.ch 
Category: Question  OS: Windows  ELOG Version: latest 
Subject: Re: mysql in execute 

 

Stefan Kanitz wrote:

This doesn't work:

Execute new = mysql -h localhost -u root -D test1 -e "insert into `test2` (Autor, Adressat, Teil1, Teil2, Teil3,
Teil4, Teil5, Teil6, Teil7, Teil8 )  values ('$Autor', '$Adressat' ,  '$Teil1', '$Teil2', '$Teil3', '$Teil4', '$Teil5',
'$Teil6', '$Teil7', '$Teil8' )"

 

In the elogd.cfg file, you cannot have multi-line options. Either you put everything on a single line (I guess there is also some limit at a few hundred characters) or you call a batch file which then calls the mysql command. 

ELOG V3.1.5-3fb85fa6