You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Jacob, Anil - MWT" <Ja...@menlolog.com> on 2004/01/23 19:41:23 UTC
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: multiple commands with same ssh connection
Posted by "Clifton C. Craig" <cc...@icsaward.com>.
If your target system is Linux try:
<sshexec host="xxxxxx"
username="xxxx"
password="xxxx"
command="command1;command2"/>
That's how I do it at least.
Clifton C. Craig, Software Engineer
Intelligent Computer Systems - A Division of GBG
2101 Embassy Drive
Lancaster, PA 17603
Phone: 717-295-7977 ext. 621
Fax: 717-295-7683
ccc@icsaward.com
ccraig@globalbeveragegroup.com
****************************************************************************
Jacob, Anil - MWT wrote:
> 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: 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