I have searched this topic from achive but not found yet... I make a perl daemon script
>From console, my script detach itself using Proc::Daemon::Init (use Proc::Daemon module I installed from CPAN). in background, my process looping forever to check some condition saved in database. when this looping meet some particular condition (lets say $Salary > USD 1000000 annual:), this script will fork to execute some sub procedure. This script use Proc::Simple to fork, and execute another sub procedure as an independent process in this procedure (called by Proc::Simple->start), my script must execute external program. I use system(externalprogram) to execute it. *when* I comment Proc::Daemon::Init line and let my script run at fore ground but sub procedure called by Proc::Simple, everything seems ok. *but*, when I push my script to back ground by uncomment Proc::Daemon::Init line, my external program I call using system is *not executed* I have try to replace Proc::Daemon::Init by manual forking: use POSIX; $pid = fork; exit if $pid; setsid; #close STDIN,STDOUT,STDERR ...rest of my script but this replacement not solve this problem yet would anyone here gimme a clue what's going on ? thx, Tri ===== .....love is never enough to be everything.... __________________________________________________ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]