Help for this page
my $pid; defined($pid = fork()) or die "unable to fork: $!\n"; ... die "unable to exec: $!\n"; } # parent continues here
exec("R", "and", "some", "args"); # $pid will be the R command exec("R and some args > out"); # $pid will be that of a shell