I have found under several Unix's that running a job with 'nohup' under
the korn shell on a serial line and* up causes the line to behave
strangely until the nohup completes.
1) Run ksh as your shell
2) type nohup sleep 180 &
3) hang up the serial line
4) try to log in again
I have found under HP-UX 9.0
1) doesn't see my last shell logout ( rather it respawns login)
2) can't log in a 14.4k modem with error correction
3) doesn't set ctsxon, rtsxoff upon re-login
Under Sequent Dynix/Ptx1.4
1) doesn't see my last shell logout ( rather it respawns login)
2) upon re-dial, the line connects but no login is started
As soon as the 'nohup'ed job finishes, everything works fine. If my
shell is the bourne shell, everything is fine. In fact, even if my
primary shell is the korn shell, if I start up a bourne shell before
doing the nohup, everything works fine.
It seems that it is some interaction between 'nohup' and 'ksh' that
causes the tty line to stay open while the 'nohup' is running, even
though 'ps' properly shows the job without a controlling terminal.
I have found the cause is that nohup keeps the standard input
attached to the terminal. My only solution has been to install the
BSD/Net2 nohup and add a line close the standard input if it a tty.
Why nohup does this, and why the use of ksh with nohup causes the serial
line to behave strangely, I don't know.
Any ideas what is going on here?
--
Bruce Momjian | 830 Blythe Avenue
+ If your life is a hard drive, | (610) 353-9879(w)
+ Christ can be your backup. | (610) 853-3000(h)