ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <levylamb...@tiscali-dsl.de>
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
Antoine
----- Original Message -----
From: "Samuel Blanchet" <sblanchet@sopragroup.com>
To: "'Ant Users List'" <user@ant.apache.org>
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
this
> variable in my SSH script.
>
> Could you help me ?
>
> Thanks
>
>  Sam
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>


Mime
View raw message