Help for this page

Select Code to Download


  1. or download this
    system("ls -l > ls.out");  # you gonna have to wait
    system("ls -l > ls.out &"); # the command goes into the
                                # background
    
  2. or download this
    my $pid = fork;
    die "Fork failed me!\n" if !defined($pid);
    ...
    }
    # I'm the parent!
    sleep 5; #or whatever