ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dick, Brian E." <Brian.D...@FMR.com>
Subject RE: sshexec error handling
Date Wed, 08 Jun 2005 20:25:13 GMT
I got it working with "if", but your version is shorter. Thanks.

-----Original Message-----
From: Alexey N. Solofnenko [mailto:A.Solofnenko@mdl.com] 
Sent: Wednesday, June 08, 2005 3:52 PM
To: Ant Users List
Subject: Re: sshexec error handling


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@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