Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: perl File::tail log files.

by aitap (Curate)
on Jun 21, 2014 at 05:20 UTC ( [id://1090727]=note: print w/replies, xml ) Need Help??


in reply to perl File::tail log files.

I need to tail a log file as i run some commands on a cisco router.
Do you change directory anywhere in your script? Try inserting use Cwd; print getcwd(), "/logs/nameoflogfile ", (-e getcwd()."/logs/nameoflogfile" ? "exists" : "does not exist"), "\n" before the place where you open the file.
I tried to tail a different file with the same script in my local host(not in router) it worked.
Does this mean that you need to tail a log file on the remote host (CISCO router)? That could be a bit difficult.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1090727]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2024-04-20 01:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found