Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: wait for the system command to complete process

by flexvault (Monsignor)
on Sep 13, 2012 at 13:54 UTC ( #993497=note: print w/replies, xml ) Need Help??


in reply to wait for the system command to complete process

kulls,

I'm not sure I understand the problem, but I ran your code and it finished as fast as I typed the command. So if you use 'system':

my $result = system(`nmon -F file.out -s3 -c1`);
'system' will wait until the command completes and returns.

Hope it helps...Ed

"Well done is better than well said." - Benjamin Franklin

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://993497]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (12)
As of 2016-12-05 14:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (85 votes). Check out past polls.