Help for this page

Select Code to Download


  1. or download this
    open PIPE, "-|", "/usr/bin/tail", "-f", "$perf_logfile"
       or die "could not start 'tail' on $perf_logfile: $!";
    
  2. or download this
    while (<PIPE>) {
        if ( $_ =~ /(Some pattern)/i ) {
    ...
        }
    }
    close PIPE;