freelanceprogrammers.org Forum Index » Perl

Reg: Process Monitoring


View user's profile Post To page top
skpkrish Posted: Thu Apr 06, 2006 9:36 am


Joined: 13 Aug 2005

Posts: 12
Reg: Process Monitoring
Hai Folks,

(1) I want to monitor a perl script and when that perl script
stops running, I want to run another perl script immediately. Is that possible.
(2) I want to determine the time when a perl script exits.

Please advice me,

Regards
Krish


---------------------------------
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.

[Non-text portions of this message have been removed]
Reply with quote
Send private message
View user's profile Post To page top
Rob_Wilson_98 Posted: Fri Apr 07, 2006 6:49 am


Joined: 02 Aug 1999

Posts: 11
Reg: Process Monitoring
1) Is there some reason why you can`t run the scripts in some sort of
batch mode? Unix and Windows both support that. Otherwise you have
to decide how much time you can wait between the script exiting and
the next one starting and check the process list for that perl script.

2) Some OSes allow you to audit events, there may be an event for a
process exiting. Otherwise, you could write to a file or touch a file
at the end of execution. Again, this could be done in a batch mode.
If you want to know how long it took for the perl script to run, use
timex (on UNIX) or some equivalent for other OSes.

--- In Perl_Official@yahoogroups.com, Krishna Prasad <skpkrish@...> wrote:
>
> Hai Folks,
>
> (1) I want to monitor a perl script and when that
perl script stops running, I want to run another perl script
immediately. Is that possible.
> (2) I want to determine the time when a perl script
exits.
>
> Please advice me,
>
> Regards
> Krish
>
>
> ---------------------------------
> New Yahoo! Messenger with Voice. Call regular phones from your PC
and save big.
>
> [Non-text portions of this message have been removed]
>
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help