Help for this page

Select Code to Download


  1. or download this
    # Beware of using input from the user in $cmd.
    my $cmd = 'for f in a b c; do date; sleep 1; done';
    ...
       while (<PROG>) { $conn->print($_); }
       close(PROG);
    }