ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <levylamb...@tiscali-dsl.de>
Subject Re: SSH Tasks
Date Thu, 20 Feb 2003 18:13:22 GMT
The <read> <write> interactivity could be used to be able to respond to
different situations like
    ls -l foo
    ls: foo: No such file or directory
    ...
   or

   ls -l foo
   -rwxr-xr-x    1 Administ Kein         1538 Feb 20 19:03 foo

It is true that ssh does not need to be interactive.
The type of "dialog" I am referring to is better handled by a shell script
or an ant build file at the remote end.

It looks like the telnet task needs <read><write> for the login; this is not
the case for ssh.

Antoine
----- Original Message -----
From: "Anderson, Rob H - VSCM" <Anderson.Rob@vectorscm.com>
To: "'Ant Developers List'" <dev@ant.apache.org>
Sent: Thursday, February 20, 2003 6:42 PM
Subject: RE: SSH Tasks


> My comments (RA>) below. I encourage others to chime in.
>
> -----Original Message-----
> From: Stefan Bodewig [mailto:bodewig@apache.org]
> Sent: Thursday, February 20, 2003 9:12 AM
> To: dev@ant.apache.org
> Subject: Re: SSH Tasks
>
>
> On Thu, 20 Feb 2003, Rob H. Anderson <Anderson.Rob@vectorscm.com>
> 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.
>
> > It is meant to provide the ability to execute commands remotely as
> > if you were running ssh as follows:
> >
> > ssh username@hostname 'command arg'
>
> Which could be seen as a degenerate case with just a single <write>.
>
> RA> Sure. And the this feature could have been left out of ssh, forcing
you
> to interact with
> RA> the shell. Don't you think it is unnecessary to force interactivity
> where none is needed?
> RA> Other than "consistency with the telnet command", what other value
would
> <read>/<write> add?
>
> > This sort of thing would be much more difficult to program (and
> > maintain) as well.
>
> I must admit that I'm not familiar with the jsch code at all, so I
> can't comment on this.
>
>
> Stefan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
>


Mime
View raw message