Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon5.gif   How to pass attachment names to an Execute line?, posted by Alexandre Lindote on Thu Oct 19 11:45:18 2006 
    icon2.gif   Re: How to pass attachment names to an Execute line?, posted by Stefan Ritt on Thu Oct 19 19:45:35 2006 
Message ID: 2011     Entry time: Thu Oct 19 19:45:35 2006     In reply to: 2007
Icon: Reply  Author: Stefan Ritt  Author Email: stefan.ritt@psi.ch 
Category: Question  OS: Linux  ELOG Version: 2.6.2-1699 
Subject: Re: How to pass attachment names to an Execute line? 

Alexandre Lindote wrote:
Hi,

I'm trying to pass the name of an attachment in a "Execute new " line, but I can't seem to get the correct syntax...
I've tried:
Execute new = echo "New document with reference $Internal Ref with the name $attachements " >> /home/zeplin3/lixo.log
Execute new = echo "New document with reference $Internal Ref with the name $attachements1 " >> /home/zeplin3/lixo.log
Execute new = echo "New document with reference $Internal Ref with the name $1 " >> /home/zeplin3/lixo.log

but nothing seem to work. If I remove the $attachments bit the output is correct...
Any suggestions?


Sorry there was a type in the documentation. You should write

$attachments

and not

$attachements

then it will work.
ELOG V3.1.5-fe60aaf