You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by whatiz usayin <wh...@hotmail.com> on 2004/05/05 12:44:25 UTC
SSH based tasks?
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
Re: SSH based tasks?
Posted by "S. Alan Ezust" <ez...@users.sourceforge.net>.
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
Re: SSH based tasks?
Posted by Lyndon <sa...@ozemail.com.au>.
Hello whatiz,
Wednesday, May 5, 2004, 8:44:25 PM, you wrote:
wu> Hi,
wu> I've been using the Telnet task for sometime and want to move to SSH,
wu> however the Telnet task supports nested read elements that allow my scripts
wu> to wait for specific strings in the output before writing a response. The
wu> current sshexec task does not support this, is anybody aware of any ssh
wu> based tasks out there that may help?
Telnet to a box and then use expect to control a ssh session...
wu> Regards
wu> Whatiz
wu> _________________________________________________________________
wu> Express yourself with cool new emoticons http://www.msn.co.uk/specials/myemo
wu> ---------------------------------------------------------------------
wu> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
wu> For additional commands, e-mail: user-help@ant.apache.org
--
Best regards,
Lyndon mailto:samson@ozemail.com.au
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org