RSH (remote shell) - must all children die before remote part exits?

Richard Tobin richard at aiai.ed.ac.uk
Fri Dec 15 02:05:09 AEST 1989


In article <21262 at mimsy.umd.edu> chris at mimsy.umd.edu (Chris Torek) writes:

>rsh $host -n "setenv DISPLAY $DISPLAY; exec $@ </dev/null >&/dev/null"

But beware of mutant csh-derivatives that fail to ensure that FSHIN etc
are closed when exec()ing.  I found this in a variant of tcsh recently.
How it crept in I don't know.

-- Richard


-- 
Richard Tobin,                       JANET: R.Tobin at uk.ac.ed             
AI Applications Institute,           ARPA:  R.Tobin%uk.ac.ed at nsfnet-relay.ac.uk
Edinburgh University.                UUCP:  ...!ukc!ed.ac.uk!R.Tobin



More information about the Comp.unix.wizards mailing list