Help for this page

Select Code to Download


  1. or download this
         -f    Follow. If the input-file is not a pipe,  the  program
               will  not  terminate  after the line of the input-file
    ...
               read and copy further  records  from  the  input-file.
               Thus  it  may  be used to monitor the growth of a file
               that is being written by some other process.
    
  2. or download this
    use IO::Select;
    open (F, 'tail -f somefile.log |') or die;
    ...
          print $lastrec;
       }
    }