Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: wait for the system command to complete process

by flexvault (Monsignor)
on Sep 13, 2012 at 13:54 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://993497]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (7)
As of 2024-03-19 09:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found