Separate the commands with a ;
<sshexec host="somehost"
username="${username}"
password="${password}"
command="touch somefile;touch anotherfile;touch yetanotherfile"/>
-Rob A
> -----Original Message-----
> From: S I [mailto:xiamak@hotmail.com]
> Sent: Thursday, May 19, 2005 3:01 PM
> To: user@ant.apache.org
> Subject: Ant Task: sshexec
>
>
> How can I get sshexec to pass it more than one command at a time?
>
> <sshexec host="somehost"
> username="${username}"
> password="${password}"
> command="touch somefile"/>
>
> I used it to run command on our unix server from my winxp
> desktop. However,
> it seems I have to instantiate many of these ...
>
> <sshexec host="somehost"
> username="${username}"
> password="${password}"
> command="touch somefile"/>
>
> .. just to run 1 cmd @ a time. I tried <commnadline> + it <argument>
> attribs to no avail as you guessed it. Help!
>
> Thanks
> Steven
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
|