> I don't think it can easily be done from a script only, but it's possibly
> to write a wrapper program in C that opens a pseudo-tty, then forks,
> setting the controlling tty of the child to the pseudo-tty.  This would
> allow stdin/stdout/stderr communication with the wrapper.

This sounds like what Expect does. Ya might want to check out Expect and
see if it works.  http://expect.nist.gov


--
Gregor Mosheh
[EMAIL PROTECTED]
Systems Admin, Humboldt Internet
707.825.4638


On Wed, 26 Jan 2000, Brian Wellington wrote:

> On Thu, 20 Jan 2000, dreamwvr wrote:
> 
> >    anyone know the right <STDIN> syntax to get ssh to run from a
> > script? i have one that i have been playing with that gets access but
> > it is not able at this time to get a xterm via X back to the
> > workstation. I am getting a echo that since i am using stdin ssh will
> > not issue a psuedo-terminal. This occurs even with a -t switch at the
> > end of the ssh command string. any ideas or suggestions?
> 
> I don't think it can easily be done from a script only, but it's possibly
> to write a wrapper program in C that opens a pseudo-tty, then forks,
> setting the controlling tty of the child to the pseudo-tty.  This would
> allow stdin/stdout/stderr communication with the wrapper.
> 
> Yes, it works.  Yes, it's ugly.  Yes, it will be in the next version of
> sftp (ftp replacement that runs over ssh - see http://www.xbill.org/sftp).
> 
> Brian
> 
> 

Reply via email to