From: Chris M. <mut...@mc...> - 2003-09-17 16:13:42
|
Hey, I haven't the faintest idea. Perhaps one of the two brilliant minds the suggested the fix could comment? -Chris Muth On 9/17/03 at 10:03 AM Ed Arnold wrote: >Is this because STDIN is associated with the controlling terminal? > > >> NOT closing STDIN makes the fragment work properly. >> >> Thank You, >> Chris Muth >> >> >> On 9/16/03 at 9:55 PM Austin Schutz wrote: >> >> >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 >> >> >> >> >> >> ------------------------------------------------------- >> This sf.net email is sponsored by:ThinkGeek >> Welcome to geek heaven. >> http://thinkgeek.com/sf >> _______________________________________________ >> Expectperl-discuss mailing list >> Exp...@li... >> https://lists.sourceforge.net/lists/listinfo/expectperl-discuss |