![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| pERL SCRIPT FOR MONITORING DATE/TIME STAMPS FOR START AND STOP OF APPLICAION IN A LOG | FREDDIE091970 | Shell Programming and Scripting | 4 | 03-31-2008 09:59 PM |
| Start Stop Apache | MILLERJ62 | AIX | 2 | 12-27-2005 05:40 PM |
| Checking before start and stop processes | maldini | Shell Programming and Scripting | 3 | 07-22-2005 02:35 AM |
| Stop/Start proftpd | Lomic | UNIX for Dummies Questions & Answers | 1 | 12-09-2004 09:38 AM |
| Start/Stop Script | jjv1 | UNIX for Dummies Questions & Answers | 2 | 12-16-2003 04:28 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Hi all,
I joined this forum today and this is my first question. I thank you all for viewing it. I will try to be brief. The OS: HP-UX B.11.11 U 9000/800 There are lot of cron scheduled perl scripts running on this server, which do different things at different time. Some of them process incoming csv files (from some server), some scripts upload that data to a oracle DB, some anther scripts process that data and populate some other table and so on. I am sorry if this is confusing, but there are more than 300 scripts running (at different time per day). They can run for 10 seconds or 3 days. Now my problem: My boss wants to monitor all scripts' start-stop time in real time. Something like this Script name----Start date---Start time---Stop date---Stop Time Script1 mm/dd/yyyy hh:mm:ss mm/dd/yyyy hh:mm:ss .... (I need to do this for 3 different logins, which have different perl scripts scheduled). Is there any way (without manually running PS command for each script) so that the start and stop time of all these scripts will be logged automatically? I am sorry if I have broken any rule of this forum by putting this in wrong thread. I appreciate any input from all of you Unix Gurus. |
|
||||
|
Thanks sysgate and prowla for your replies.
Sysgate- you are right, modifying every perl script is not possible. The scripts were written 5 to 10 years back, and probably the debugging options were not on their priority list. I was affraid that I might not have any other option than modifying each script. prowla- That is excellent! The log file is there, and seems to contain useful information. Now I need to worry about parsing that file and generating some useful reports! I will try to write a simple shell or perl script which can list ALL processes for a certain user, for a specific time period. One problem I can foresee is that it may not contain the stop time - any ideas on that? I will keep you posted guys, Thanks for your support and spending time on this. ![]() Last edited by bluesky099; 12-14-2007 at 12:06 AM.. |
|
||||
|
However there is nothing to stop you using a wrapper script which does the timing and calls the original script.
|
|
||||
|
A common wrapper should be the way as writing a wrapper for 'n' number of scripts is not an ideal way
How about something like, Code:
* * * * 1 common_wrapper.sh && yourscript.ksh && common_wrapper.sh |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|