Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: wait for the system command to complete process

by kcott (Abbot)
on Sep 13, 2012 at 05:29 UTC ( #993364=note: print w/ replies, xml ) Need Help??


in reply to wait for the system command to complete process

G'day kulls,

I'm not an nmon user and I don't have it installed so I can't test any of the following.

My understanding is that nmon starts a daemon so the command will return before the daemon finishes. That would be why you're only getting part of the output.

You don't show any use of $result: I suspect system would be a better choice than backticks.

If you are only running it for a few seconds (-s3 -c1), then sleep may be a viable option; however, I'd probably lean more towards tailing file.out - File::Tail may be helpful for that.

-- Ken


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

Log In?
Username:
Password:

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

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

    The best computer themed movie is:











    Results (238 votes), past polls