I would suggest changing your process slightly. Run Ant on the unix box where you "dist the project". Of course, I'm not sure what output you are trying to evaluate, but this may help your situation.
-Rob Anderson > -----Original Message----- > From: Ramnish Kalsi [mailto:[EMAIL PROTECTED] > Sent: Friday, September 16, 2005 4:19 AM > To: Ant Users List > Subject: ssh advice > > Hi, I am working on a project to automate a build system, and > the flow is somewhat like this: > > 1. ssh into a unix machine. > 2. Sync the repository > 3. dist the projects. > 4. ssh into application-specific unix boxes and deploy > appropriate apps to appropriate boxes. > > How can i gather the output of ssh task into a variable and > take logical decisions based upon the output. > What should be the best possible approach for this ? > > thanks. > ramnish. > > Ant version: 1.6.2 > Java version: 1.4.2_03 > > > ********************************************************************** > This email and any files transmitted with it are confidential > and intended solely for the use of the individual or entity > to whom they are addressed. If you have received this email > in error please notify the system manager. > > This footnote also confirms that this email message has been > swept by MIMEsweeper for the presence of computer viruses. > > www.mimesweeper.com > ********************************************************************** > > > --------------------------------------------------------------------- > 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]