ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anderson, Rob (Global Trade)" <Rob.Ander...@nike.com>
Subject RE: SSH based tasks?
Date Wed, 05 May 2004 17:23:32 GMT
The sshexec task was written to remotely execute commands via ssh, similar to the following...

ssh user@host 'command arg'

You can also run multiple commands by separating them with a ";".

-Rob Anderson

> -----Original Message-----
> From: S. Alan Ezust [mailto:ezust@users.sourceforge.net]
> Sent: Wednesday, May 05, 2004 9:51 AM
> To: Ant Users List
> Cc: whatiz usayin
> Subject: Re: SSH based tasks?
> 
> 
> You want to run an interactive remote shell through ssh from 
> an ant script?
> 
> Why not just run a non-interactive shell script (which could 
> run an ant script 
> for example) via ssh that does what you want on the other end? 
> 
> That might be easier... You can generate the file and scp it 
> over there, and 
> then run it on the remote host via ssh. 
> 
> On May 5, 2004 06:44 am, whatiz usayin wrote:
> > Hi,
> >
> > I've been using the Telnet task for sometime and want to 
> move to SSH,
> > however the Telnet task supports nested read elements that 
> allow my scripts
> > to wait for specific strings in the output before writing a 
> response. The
> > current sshexec task does not support this, is anybody 
> aware of any ssh
> > based tasks out there that may help?
> >
> > Regards
> >
> > Whatiz
> >
> > _________________________________________________________________
> > Express yourself with cool new emoticons
> > http://www.msn.co.uk/specials/myemo
> >
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> 
> -- 
> S. Alan Ezust
> Ottawa, Ontario, Canada
> http://cartan.cas.suffolk.edu/~sae
> 
> ---------------------------------------------------------------------
> 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