I need to tail a log file as i run some commands on a cisco router. I used perl cpan File::Tail module.
my $file = File::Tail->new("logs/nameoflogfile"); while(defined(my $line = $file->read)) { print "$line\n"; }
I get the following error : Error opening "filename" No such file or directory
Checked the following1)File exists -->yes 2) Name of the file is correct, Path is correct.-->yes 3)I tried to tail a different file with the same script in my local host(not in router) it worked. 4)However on the router# it doesn't work. Any suggestions ?
In reply to perl File::tail log files. by user786
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |