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

Re: wait for the system command to complete process

by flexvault (Parson)
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


Comment on Re: wait for the system command to complete process
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2014-08-23 14:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (174 votes), past polls