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