yes,you can. the Network Programming with Perl have introduced a way to do that,maybe you can get re. :
sub daemon { my $child = fork(); die "can't fork:$!" unless defined $child; exit 0 if $child; setsid(); #comming from use POSIX; open (STDIN, "</dev/null"); open (STDOUT, ">/dev/null"); open (STDERR,">&STDOUT"); chdir $rundir; umask(0); $ENV{PATH}='/bin:/usr/bin:/sbin:/usr/sbin'; return $$; } -----Original Message----- From: Octavian Rasnita <[EMAIL PROTECTED]> Sent: Dec 16, 2005 5:33 AM To: beginners@perl.org Subject: running child processes Hi, Is it possible to create more child processes and let them run, but close the main program immediately? I have read (in perldoc perlfork) that: A way to mark a pseudo-processes as running detached from their parent (so that the parent would not have to wait() for them if it doesn't want to) will be provided in future. Thank you. Teddy -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>