Using popen from a daemon
R. Lindsay Todd
todd at narnia.ecs.rpi.edu
Thu Jun 28 06:21:08 AEST 1990
I have a program that uses popen and pclose. If the program has a controlling
tty, the commands started by popen work correctly. However, if there is no
controlling tty, it seems like popen never even starts /bin/sh. Oh yes, this
is true under both Ultrix 3.1 and SunOS 4.0.3, the only systems I've been
able to try this with.
There is nothing in the man pages I have that indicate that popen must have
a controlling tty. Is this some unwritten standard "feature" of popen, or
is it a buggy implementation?
--
R. Lindsay Todd, Systems Programmer
ECS, Rensselaer Polytechnic Institute, Troy, NY 12180-3590
Internet: todd at narnia.ecs.rpi.edu
More information about the Comp.unix.questions
mailing list