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':
'system' will wait until the command completes and returns.my $result = system(`nmon -F file.out -s3 -c1`);
Hope it helps...Ed
"Well done is better than well said." - Benjamin Franklin
In reply to Re: wait for the system command to complete process
by flexvault
in thread wait for the system command to complete process
by kulls
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |