Re: ksh script question



On Sun, Jan 29, 2006 at 01:46:34PM +0100, Green, Simon wrote:

There is one alternative also
RMC can be used to test condition with so your script can be
set as sensor from RMC (there is redbook with description
how to do it, only drwaback is this is aix 5 related)
but great thing is RMC is capable of detecting if
your script is already active on system

Hope this helps

Damir


> It might not be appropriate for your particular needs, but one simple
> alternative if this is a script running continuously at regular intervals is
> not to use crontab. Instead, start it from inittab and then when the script
> completes simply have it call itself again, possibly after sleeping for a
> while. Or put the whole thing in an endless loop.
>
> --
>
> Simon Green
>
> Altria ITSC Europe s.a.r.l.
>
>
>
> AIX-L Archive at https://new-lists.princeton.edu/listserv/aix-l.html
>
> New to AIX? http://publib-b.boulder.ibm.com/redbooks.nsf/portals/UNIX
>
>
>
> N.B. Unsolicited email from vendors will not be appreciated.
>
> Please post all follow-ups to the list.
>
> -----Original Message-----
> From: IBM AIX Discussion List [mailto:aix-l@xxxxxxxxxxxxx] On Behalf Of Mark
> Schlechte
> Sent: 26 January 2006 19:40
> To: aix-l@xxxxxxxxxxxxx
> Subject: ksh script question
>
>
> If I have a script scheduled via cron how do I check to see if it is already
> running and therefore not run it a second time?
>
> TIA, Mark
> DISCLAIMER: The information transmitted is intended only
> for the addressee and may contain confidential,
> proprietary and/or privileged material. Any
> unauthorized review, distribution or other use
> of or the taking of any action in reliance upon
> this information is prohibited. If you received
> this in error, please contact the sender and
> delete or destroy this message and any copies.
>
> As of January 20, any e-mails addressed
> to "cityregina.com" will not be delivered.
>
>



Relevant Pages