Help for this page

Select Code to Download


  1. or download this
    &{
        bg exe sub { "2>#" }, qw( ls  /tmp  does_not_exist ),
    ...
           exe qw(cat -n),
           exe sub { print "six> $_" while <STDIN>; print "5th cmd: @_\n" 
    +},
    };
    
  2. or download this
    { ls /tmp does_not_exist 2> /dev/null | tac | [perlsub] | { sort | cat
    + -n | [perlsub] } & } &
    
  3. or download this
    exe &PREEXEC, LIST, &READER
    exe &PREEXEC, &READER
    exe &READER
    
  4. or download this
          "2>null"    # silence  stderr
          ">#"        # silence  stdout
          "2>&1"      # redirect stderr to  stdout
          "1>&2"      # redirect stdout to  stderr
          "1><2"      # swap     stdout and stderr
    
  5. or download this
    bg &BACKGROUND
    
  6. or download this
    package IPC::Exe;
    
    ...
    }
    
    'IPC::Exe';