Remote shell question

Stephen M. Kennedy smk at cbnews.att.com
Thu Feb 7 07:34:53 AEST 1991


In article <1991Feb6.043021.7019 at NCoast.ORG> allbery at ncoast.ORG (Brandon S. Allbery KB8JRR) writes:
>As quoted from <1991Feb1.170808.24481 at cbnews.att.com> by smk at cbnews.att.com (Stephen M. Kennedy):
>+---------------
>| 	remsh/rsh remote-host 'sleep 30 <&- >&- 2>&- 7>&- &'
>| 
>| The offending fd #7 showed up in a "/etc/pstat -u pid-of-sleep-process" in
>| the file section.
>+---------------
>*7* ????!  Was ist los?

Good question.  It seems to be a dup of stderr.  Also under certain
conditions it shows up as fd #6, so now I just close every fd I can (0-9)
in the script to be safe.  I don't think it's a shell problem, unless it's
one shared by both /bin/sh and ksh.  Anybody know?

Steve Kenndy
smk at cbosgd.att.com



More information about the Comp.unix.shell mailing list