>On Mon, 17 Jun 1996, Mark Phillips wrote: > >> >Maybe - do this on a running tcsh whose pid is xxx: >> > >> >cat /proc/xxx/environ | xargs -0n1 | grep '^TERM=' >> > >> >to see what tcsh was passed as the TERM. It should be the same in the >> >actual shell. >> >> I did this - the environ file is empty!!! What could be wrong? > >I doubt the file was empty. You can't view it with less or something >because it stats as zero size. Just cat it. Use the xargs line to format >it nicely.
It really is empty!! I'll paste in what I did: # pwd /proc/3 # ls /usr/bin/color-ls: exe: No such file or directory /usr/bin/color-ls: root: No such file or directory /usr/bin/color-ls: cwd: No such file or directory cmdline environ fd/ mem stat status cwd@ exe@ maps| root@ statm # cat /proc/3/environ | xargs -0n1 | grep '^TERM=' # cat environ # > >> Why will the problem go away - what's wrong with using the "-detach" >> option? > >It'll still have a controlling terminal. If you're using a shell >without job control (sh), it'll be in the same process group as the shell. But does this have anything to do with why the process regularly dies? Surely having a controlling terminal doesn't do any harm? Thank's for your help, Mark Phillips. ([EMAIL PROTECTED])