Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site rlgvax.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!rlgvax!guy From: guy@rlgvax.UUCP (Guy Harris) Newsgroups: net.unix-wizards,net.bugs.usg Subject: Re: ps problem Message-ID: <407@rlgvax.UUCP> Date: Wed, 30-Jan-85 18:47:06 EST Article-I.D.: rlgvax.407 Posted: Wed Jan 30 18:47:06 1985 Date-Received: Sun, 3-Feb-85 02:21:18 EST References: <658@whuxlm.UUCP> Distribution: net Organization: CCI Office Systems Group, Reston, VA Lines: 17 Xref: seismo net.unix-wizards:11736 net.bugs.usg:175 > Why does: > > nohup ps > > fail to produce significant output in nohup.out under AT&T UNIX* 5.2? > Only the ps header line is output. Because the command "ps" lists only the processes attached to the "current terminal", where the "current terminal" is the one which file descriptor 2 refers to. Since file descriptor 2 is redirected to "nohup.out" by "nohup", "ps" can't determine what the current terminal is, and so finds no processes attached to that terminal. Unfortunately, file descriptor 0 is redirected to /dev/null for background processes in the Bourne shell, so that won't work (FD1 is also redirected to "nohup.out"). Guy Harris {seismo,ihnp4,allegra}!rlgvax!guy