From: Roland G. <RGi...@cp...> - 2002-08-29 08:36:19
|
> It's been a while since I tracked it down, but I seem to remember > that it ran into trouble in IO::Pty::make_slave_controlling_terminal. IO-Tty and Expect now correctly handle the controlling terminal of the spawned process, that is, the spawned process runs in its own process group and gets the slave pty set as its controlling terminal (otherwise Expect wouldn't be able to handle password prompts). But this process group gets into the way of the shells job control. /bin/sh doesn't have job control, that's why the mentioned workaround works. Another way would be to use the utility 'nohup' (don't know, which system it is available on, I have it here on AIX) for putting commands into the background. It also handles the case that the background process would get a SIGHUP if the user logs out of the foregropund shell... Hope this helps, Roland -- RGi...@cp... |