On 8/2/05, Derek Davis <[EMAIL PROTECTED]> wrote: > disown should do it. run it in the background, then type "disown", > and you should be able to quit and it will keep running.
I'll take this opportunity to ask a question about disown that's been on my mind for some time. Assume I have a script that acts as a server. This script resides on a remote machine that I access via ssh. That script needs to be run as root, so to run it, I need to su after logging in (no ssh access as root). So these are my commands (eliding password prompts): local$ ssh remote remote$ cd script_path/ remote$ sudo su remote# ./server & remote# disown server remote# exit remote$ exit Everything works file up until that last exit. The process has been disowned, and I was able to leave the root login shell just fine. But exiting the remote ssh shell hangs. Coincidentally, this is the same surface symptom as if I ran ./server & as myself (not root) and didn't disown it. A difference however, is that closing this hung terminal on my side (forcing the TTY to disconnect) doesn't kill the script. I can log back in to remote and see the script running (via ps). So the hang is only an inconvenience. Question: Why does a disowned process originating in a shell nested inside another cause the outer shell to refuse to release? Jacob Fugal -------------------- BYU Unix Users Group http://uug.byu.edu/ The opinions expressed in this message are the responsibility of their author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. ___________________________________________________________________ List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
