CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced: Re: [tm4c] Dynamic Logging of any File used in Script: Edit Log



KevinR
Veteran


Jan 24, 2009, 12:01 PM


Views: 2198
Re: [tm4c] Dynamic Logging of any File used in Script

My first thought was there might be a perl variable that holds the name of the current/last file opened, but I did not see one. You can search through the list, maybe I missed something:

http://perldoc.perl.org/perlvar.html

It sounds like you are trying to monitor what files users are opening. There is no easy way I can think of to do this. All the file IO would have to handled by a dedicated module that gets loaded at compile time. The main script passes all file IO operation to the dedicated module which logs all file IO activity or certain activity only. That would require a rewrite of existing perl scripts as well as writing the dedicated module that handles the file IO requests. The module should not be hard to write, but rewriting all perl script to use it might be.
-------------------------------------------------


(This post was edited by KevinR on Jan 24, 2009, 12:01 PM)


Edit Log:
Post edited by KevinR (Veteran) on Jan 24, 2009, 12:01 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives