G
I have written a perl script that runs at startup under Linux RHEL 3. I
use the normal startup scripts found in /etc/init.d. Everything works
fine EXCEPT that if in the perl script I spawn a child and in that
child I call something like `/bin/ping somehostname.com` the child
dies.
However, if I run the perl script directly _without_ calling it from
the /etc/init.d script, everything works fine.
In other words, the backtick call is making the child die when the
script is called with the "daemon" command in the startup script, but
not when run directly on the command line.
What could be the reason for this behavior?
Thanks, Robert Lancaster
use the normal startup scripts found in /etc/init.d. Everything works
fine EXCEPT that if in the perl script I spawn a child and in that
child I call something like `/bin/ping somehostname.com` the child
dies.
However, if I run the perl script directly _without_ calling it from
the /etc/init.d script, everything works fine.
In other words, the backtick call is making the child die when the
script is called with the "daemon" command in the startup script, but
not when run directly on the command line.
What could be the reason for this behavior?
Thanks, Robert Lancaster