22 Feb
2000
22 Feb
'00
12:56
Hi, On Mon, Feb 21, 2000 at 21:18 -0500, Steven T. Hatton wrote:
Any ideas how I can spawn persistent processes? I know I should know how to do this! I don't know how, and I am not a newbie! Ok, I admit it!
Try this #!/usr/bin/perl -w if ($pid = fork) { print "Parent exiting\n"; exit 0; } elsif ($pid == 0) { for (;;) { print "Child\n"; sleep 1; } } else { die "fork() failed"; } Ciao, Stefan -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/