Hi,
Below code reads the output of the nmon system command.
the script starts executes before system command complete its processing and parsing only half of the file.
Is there any work around other than using sleep command ?
my $result= `nmon -F file.out -s3 -c1`;
open(FILE,"<file.out") || die $!;
while(<FILE>) { print $_; }
close(FILE);