Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
open (PING, ">>dummy"); unless ($pid = fork) { unless (fork) { print PING exec "ping $host"; die "no exec"; exit 0; } exit 0; } waitpid($pid,0); close(PING);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: storing result in variable
by davidrw (Prior) on Nov 03, 2005 at 17:38 UTC | |
by slayven (Pilgrim) on Nov 03, 2005 at 20:18 UTC | |
|
Re: storing result in variable
by inman (Curate) on Nov 03, 2005 at 17:37 UTC | |
|
Re: storing result in variable
by hubb0r (Pilgrim) on Nov 04, 2005 at 05:51 UTC |