Help for this page

Select Code to Download


  1. or download this
    my $pid=open3(\*IN,\*OUT,0,'/bin/sh');
    # print to and read from IN and OUT
    #
    
  2. or download this
    open(CHILD, "| ./myscript 2>&1") or die "Can't open: $!";
    print CHILD "mycommand\n";