Yes, Line them up in the command attribute separated by a ";".
<sshexec host="xxxxxx"
username="xxxx"
password="xxxx"
command="command1;command2;command3"/>
Multiple command attributes are not supported.
-Rob Anderson
-----Original Message-----
From: Jacob, Anil - MWT [mailto:[EMAIL PROTECTED]
Sent: Friday, January 23, 2004 10:41 AM
To: Ant Users (E-mail)
Subject: multiple commands with same ssh connection
With sshexec can we run multiple commands wih one target and one connection? for
example
<sshexec host="xxxxxx"
username="xxxx"
password="xxxx"
command="command1"/>
command="command2"/>
Currently I think command2 cannot be executed, in the same connection.
Anil
---------------------------------------------------------------------
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]