Help for this page

Select Code to Download


  1. or download this
    #!/bin/sh
    
    ...
        sleep 10
        echo With newline
    done
    
  2. or download this
    local $SIG{ALRM} = sub { kill HUP => $pid; die "No data\n" };
    
  3. or download this
    local $SIG{ALRM} = sub { alarm 0; print "No data\n"; alarm $timeout };
    
  4. or download this
    With newline
    With newline
    ...
    No data
    No data
    NO newlineWith newline