Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
This isn't working. Any help would be appreciated. Thanks.sub runnewproc { $pid = fork(); if ($pid == 0) { system("$_[0]"); } else { sleep 1; kill $pid; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: Fork Problem
by tye (Sage) on Dec 08, 2000 at 10:29 UTC | |
|
Re: Fork Problem
by Fastolfe (Vicar) on Dec 08, 2000 at 02:23 UTC | |
by Anonymous Monk on Dec 08, 2000 at 02:29 UTC | |
by Ovid (Cardinal) on Dec 08, 2000 at 02:38 UTC | |
by zigster (Hermit) on Dec 08, 2000 at 15:39 UTC | |
by Fastolfe (Vicar) on Dec 09, 2000 at 06:35 UTC |