I do not know what is wrong. But I have
had grief before using executable="x.sh".
Normally I do
<exec executable="bash" directory="${basedir}">
    <param value="script.sh"/>
    <env key="ENVAR" value="value"/>
 </exec>

Peter

On Tuesday 17 June 2003 09:29, Peter Jeszenszky wrote:
> Hello,
>
> I would like to execute a shell script on Linux with <exec>
> and to specify environment variables to pass to the script
> via nested <env> elements:
>
>       <exec executable="./script.sh">
>               <env key="ENVAR" value="value"/>
>       </exec>
>
> The script is executed but the following appears in the output:
>
>       [exec] /bin/bash: mc: line 3: syntax error: unexpected end of file
>       ...
>
> If I remove the nested <env> element then the above line does
> not appear.
>
> Also if the executable is a binary executable not a shell script
> then the problem does not occur.
>
> Any idea how to fix the problem?
>
> Yours sincerely,
>
> Peter
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to