http://www.perlmonks.org?node_id=993497


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