From: Austin S. <te...@of...> - 2003-09-17 04:55:48
|
On Tue, Sep 16, 2003 at 09:46:51PM -0500, Chris Muth wrote: > Hi, > > I am running; > Perl 5.8 > Expect 1.15 > IO::Tty 1.02 > IO::Stty .02 > Linux 2.2.20 > > I am not sure how cron figures into this, I am not using it for this script. > Haha.. that's what I get for not reading. I'm not sure where I thought you meant cron where you said daemonize. This script will work much better if you don't close stdin/stdout/stderr. They are inherited by the children when they start. I'm not sure why that is fouling stuff up, since they get reopened anyway, but it definitely is. Doing setsid() should make it so it doesn't die when the original terminal is closed, but you may want to do setpgrp() so it doesn't die when the parent (your shell) dies. Austin |