Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #######!/usr/bin/perl
  2. use strict;
  3. use warnings;
  4. use Shell;
  5.  
  6. my $logfile = "...";
  7. my $run;
  8.  
  9. open $run, ("tail -f $logfile") or die " El fichero $logfile no tiene datos" and exit;
  10.  
  11. while (<$run>) {
  12. ...
  13. }
  14.  
  15. close ($run);
  16.  
  17. open $run, $logfile or die " El fichero $logfile no tiene datos" and exit;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement