Sounds like what you need is an IDS (intrusion detection) agent.  Since they constantly watch file access and modification you could set them to trigger a counter of some type.  If you're wanting to do this with Perl it would be difficult unless you essentially wrote and IDS agent in Perl.  Cron isn't granular enough to achieve the desired results as scripts could be executed multiple times within a single minute so your count would be inaccurate.

"Suresh Babu (RBIN/EDM3) *" <[EMAIL PROTECTED]> wrote:

Hello All

I have a peculiar requirement. I have scripts in some directory. I want to log , how many times each script is executed.I dont want to change existing scripts, i mean dont want to add SIGNAL trapping for all  these scripts as i have many scripts in this directory.  I can keep a crontab and find the access time of each script.But the problem is I want the exact  number of times each script is used.  How to do exception handling for this situation and I want to do it on Unix.


Any help is greatly appreciated.

Thank you

____________________________________________________________

      BOSCH                            Robert Bosch India Limited         
                                               RBIN/EDM3
                                               123, Industrial Layout
      Suresh   Babu                            Hosur Road, Koramangala
                                               Bangalore 560 095

                                   INDIA

                                               Tel.     +91 80 5119 - 4519
      mailto:[EMAIL PROTECTED]           Fax     +91 80 2508 - 1404

____________________________________________________________


_______________________________________________
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to