PS function for scripts

David Bandel david.bandel
Fri Sep 15 08:29:07 PDT 2006


On 9/14/06, Machiel Richards <MachielR at agilitytech.co.za> wrote:
> Hi everyone
>
>
>    Need some help on something we can't seem to get right.... we have a
> script that calls a couple of programs one after another and after
> completion sleeps for 1 hour then starts running again.
>
>
>         However when we do a ps to see if the script is still running it
> does not return any results as if it is not running...we then need to ps
> for every single program to see which one of these are busy running.
>
>
>
> How can we monitor the scripts to see if it is still running and perhaps
> what program it is running at the moment?

Take a look at how init scripts work, writing a PID file and removing
it on exit.  That might help.  That would also prevent a process from
becoming wedged, then trying to restart an hour later even though it
hasn't yet finished.


>
>
>
>
> >
> The information on this e-mail including any attachments relates to the official business of Agility (Pty) Ltd. The information is confidential and legally privileged and is intended solely for the addressee. Access to this e-mail by anyone else is unauthorised and as such any disclosure, copying, distribution or any action taken or omitted in reliance on it is unlawful. Please notify the sender immediately if it has inadvertently reached you and do not read, disclose or use the content in any way.
> >
> No responsibility whatsoever is accepted by Agility (Pty) Ltd if the information is, for whatever reason, corrupted or does not reach its intended destination. The views expressed in this e-mail  are the views of the individual sender and should in no way be construed as the views of Agility (Pty) Ltd, except where the sender has specifically stated them to be the views of Agility (Pty) Ltd.
> >
> http://196.33.167.71/digicare

was this bandwidth wasting disclaimer really necessary?  It is
certainly without legal merit.

Ciao,

David A. Bandel
-- 
Focus on the dream, not the competition.
            - Nemesis Air Racing Team motto



More information about the Linux-users mailing list