Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 romping around the Monastery: (8)
As of 2015-03-29 09:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:









    Results (630 votes), past polls