my $pid = fork; die "Error forking: $!" unless defined $pid; if (!$pid) { my $pid = fork; die "Error forking: $!" unless defined $pid; if (!$pid) { exec("/path/to/foo"); } else { CORE::exit; } }
There are two important things in that:
Anyway, hope that helps.
------------ :Wq Not an editor command: Wq
In reply to Re: apache2 and system
by etcshadow
in thread apache2 and system
by water
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |