Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: How do I start two programs without waiting for first one to be finished ?

by runrig (Abbot)
on Oct 17, 2000 at 04:23 UTC ( [id://37065]=note: print w/replies, xml ) Need Help??


in reply to How do I start two programs without waiting for first one to be finished ?

Fork them and run in the background:
system "( sleep 10; ls -l ) &";
Or use fork() explicitly:
if ( $pid = fork ) { # this is the parent } elsif ( defined $pid ) { # this is the child system "myprogram"; } else { die "can't fork: $!"; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2024-04-20 00:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found