ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <anto...@antbuild.com>
Subject Re: Using SSH in task with cygwin
Date Mon, 25 Aug 2003 09:15:52 GMT
Do you know that there is a ssh task in ant 1.6 ?
This might be more practical than what you are doing.
Antoine
----- Original Message ----- 
From: "Georges Auberger" <georges@mobile-workforce.com>
To: "Ant Users List" <user@ant.apache.org>
Sent: Monday, August 25, 2003 5:03 AM
Subject: Re: Using SSH in task with cygwin


> TERM is set to cygwin
> I'm also using bash shell on cygwin
> 
> On Sunday, August 24, 2003, at 07:28  PM, Martin Gainty wrote:
> 
> > Mssr Auberger
> > What is your TERM set to?
> > -Martin
> > ----- Original Message -----
> > From: "Georges Auberger" <georges@mobile-workforce.com>
> > To: <user@ant.apache.org>
> > Sent: Sunday, August 24, 2003 11:35 AM
> > Subject: Using SSH in task with cygwin
> >
> >
> >> I'm trying to use ssh in an exec task to connect to a remote server. 
> >> It
> >> works fine under OS X bash but when running under Cygwin on Windows
> >> 2000, I never get a prompt from SSH to enter the password. It seems
> >> that stdin is not redirected properly (I experimented with a simple
> >> bash read and got the same effect). I do not want to use certificate
> >> with SSH so i need to get prompted for the password.
> >> Anybody had success using exec cmd under cygwin that require shell
> >> input?
> >> Georges
> >>
> >>   <target name="ssh-execute" description="Execute a cmd via ssh
> >> connection">
> >>      <echo message="Executing ${ssh.shell.command} at
> >> ${ssh.user}@${ssh.host}"/>
> >> <exec executable="ssh" >
> >> <arg line="-p ${ssh.port} -T ${ssh.user}@${ssh.host}
> >> ${ssh.shell.execute.prefix}${ssh.shell.command}"/>
> >> </exec>
> >>      </target>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> 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
> >
> 
> 
> ---------------------------------------------------------------------
> 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