Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

system() requires double ctrl-c

by saintmike (Vicar)
on Nov 10, 2008 at 07:25 UTC ( [id://722571]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        #!/usr/local/bin/perl
        system("some_long_running_shell_command");
        some_other_stuff();
    
  2. or download this
        #!/usr/local/bin/perl
        for (1..10) {
            system("some_long_running_shell_command");
        }
        some_other_stuff();
    
  3. or download this
        #!/usr/local/bin/perl
        system("sleep 10");
        sleep 10;
    
  4. or download this
        #!/usr/local/bin/perl
        `sleep 10`;
        sleep 10;
    
  5. or download this
    #ifndef PERL_MICRO
       rsignal_save(SIGINT,  (Sighandler_t) SIG_IGN, &ihand);
       rsignal_save(SIGQUIT, (Sighandler_t) SIG_IGN, &qhand);
    #endif
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://722571]
Approved by Erez
Front-paged by tye
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: (6)
As of 2024-04-20 00:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found