shell tricks and trapping signals

Paul Lussier p.lussier at comcast.net
Sat Nov 3 11:43:17 EDT 2007


Bill Freeman <f at ke1g.mv.com> writes:

> Doesn't the ssh end of the pipe get closed?  And assuming that you
> have two pipes for two way communications, doesn't a read on the pipe
> for data toward the script return EOF?

Evidently not.  Read the source for perl's IPC::Session.

> Or, since the pty is still being held open by ssh (or the process would
> have already been reparented), can you just leave the process attached,
> but ignoring the fd (even if you have to dup it off to another fd>2)?

There was no pty, that's the point.  There is now, since we're forcing
one with the -t option for ssh.
-- 
Seeya,
Paul


More information about the gnhlug-discuss mailing list