Next Trivial Utilities 162

runN

        sub spawn {
          my $pid = fork;
          die "fork: $!" unless defined $pid;
          return $pid if $pid;
          warn "@_\n" if $opt{v};
          exec @_;
          die "exec: $!";
        }


Next Menu Copyright © 2012 M. J. Dominus