my $pid = fork(); unless (defined($pid)) { die "Fork failed: $!"; } unless ($pid) { # we're the child exec("cmd"); # execute the command, terminating the child. } exit; # exit parent
In reply to Re: Run the process in the background
by cowboy
in thread Run the process in the background
by perl@newbie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |