Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Early termination of STDIN with combination of ssh and sleep

by orleans704 (Initiate)
on Dec 24, 2013 at 21:53 UTC ( [id://1068335]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    use Time::HiRes qw(usleep);
    ...
        wait;
    }
    print STDERR "\nDONE\n";
    
  2. or download this
    001 123456789012345678901234567890123456789012345678901234567890123456
    +78901234567890123456789012345
    002 123456789012345678901234567890123456789012345678901234567890123456
    +78901234567890123456789012345
    003 123456789012345678901234567890123456789012345678901234567890123456
    +78901234567890123456789012345
    ...
    048 123456789012345678901234567890123456789012345678901234567890123456
    +78901234567890123456789012345
    049 123456789012345678901234567890123456789012345678901234567890123456
    +78901234567890123456789012345
    050 123456789012345678901234567890123456789012345678901234567890123456
    +78901234567890123456789012345
    
  3. or download this
    …
    read(0, "002 1234567890123456789012345678"..., 4096) = 4096
    write(2, "002 1234567890123456789012345678"..., 100002 123456789012345
    +678901234567890123456789012345678901234567890123456789012345678901234
    +56789012345
    ...
    read(0, "", 4096)                       = 0
    wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2117
    …
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1068335]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-04-24 21:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found