Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
sshexec error handling

sshexec error handling

2005-06-08       - By Alexey N. Solofnenko
Reply:     1     2     3  

Like in C: "cmd1 && cmd2"

- Alexey.

Dick, Brian E. wrote:
> I need to execute two commands with sshexec.
>
> <sshexec host="host"
>          username="username"
>          password="password"
>          command="cmd1; cmd2"
>          trust="yes"/>
>
> How can I get sshexec to fail when the first command fails?
>
> Later,
> BEDick
>
>  

--
------------------------------------------------------------------------
/ Alexey N. Solofnenko
home: http://trelony.cjb.net/
/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.