ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <>
Subject Re: SSHEXEC task
Date Thu, 17 Apr 2003 16:09:01 GMT
I do not know yet the sshexec task and so on.
Maybe you should add a "set -x" or something like that in your remote script
to allow debugging.
Where do you define the env var on the remote machine ? Is it in the .login
or .profile of the user you are running ssh against ?
Maybe these scripts do not get executed.
Or may be you are doing something like
<sshexec command="VARIABLE=VALUE"/>
<!--in the next invocation of sshexec VARIABLE is not known by the remote
shell or has an undesired value -->
<ssheexec command="some_script_dependent_on_variable"/>

where you should be doing

<sshexec command="VARIABLE=VALUE some_script_dependent_on_variable"/>

Hope this helps
----- Original Message -----
From: "Samuel Blanchet" <>
To: "'Ant Users List'" <>
Sent: Thursday, April 17, 2003 5:51 PM
Subject: SSHEXEC task

> Hi,
> I'm using the SSHEXEC task but when I execute a script file on a remote
> machine in which I define an environnement variable I'm not able to use
> variable in my SSH script.
> Could you help me ?
> Thanks
>  Sam
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View raw message