ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anderson, Rob (Global Trade)" <Rob.Ander...@nike.com>
Subject RE: Ant Task: sshexec
Date Thu, 19 May 2005 22:30:25 GMT
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


Mime
View raw message