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:[EMAIL PROTECTED] > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]