ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anderson, Rob H - VSCM" <>
Subject RE: SSH Tasks
Date Fri, 21 Feb 2003 16:46:03 GMT
Stefan, I see your point, and I agree. Can there be some flag that specifies
interactivity?  Or non-interactivity? Perhaps the default behavior should be
to assume interactivity unless the "interactive" flag is set to false. I'm
thinking of something like:

<!-- Non-interactive -->
<ssh host="myhost" username="myname" password="mypass"
	command="cd /usr/local/bin ; rm -rf product ; tar zxf

<!-- Interactive -->
<ssh host="myhost" username="myname" password="mypass">
	<read>bash-2.03$ </read>
	<write>cd /usr/local/bin</write>
	<read>bash-2.03$ </read>
	<write>rm -rf product</write>
	<read>bash-2.03$ </read>
	<write>tar zxf product.tar.gz</write>

I think this is a fair compromise.

-Rob Anderson

-----Original Message-----
From: Stefan Bodewig []
Sent: Thursday, February 20, 2003 11:25 PM
Subject: Re: SSH Tasks

On Thu, 20 Feb 2003, Rob H. Anderson <>
> From: Stefan Bodewig []
> On Thu, 20 Feb 2003, Rob H. Anderson <>
> wrote:
>> The ssh task is different from the telnet task in that is not meant
>> to handle an interactive shell session, beyond the password
>> authentication.
> Why not?
> RA> Because there is no need to interact with the shell.

No need for you, but I have to disagree with this as a general

People may prefer scripting an interactive session ovber writing a
shell script on the remote server.  You may even be able to run an
interactive program on the remote site and script the answers into
your build file.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message