Re: ksh script question
- From: Damir Delija <ddelija@xxxxxxxxxxxxxx>
- Date: Sun, 29 Jan 2006 15:46:44 +0100
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.
>
>
- References:
- Re: ksh script question
- From: Green, Simon
- Re: ksh script question
- Prev by Date: Re: ksh script question
- Next by Date: OT(slightly): Cable marking recommendations
- Previous by thread: Re: ksh script question
- Next by thread: Paul Oh is out of the office.
- Index(es):
Relevant Pages
- Announcement: Fix management tool for AIX 4.x/5.x available
... I'm pleased to announce a tool to automate download and management ... of ".bff"
and ".rpm" fix packages for AIX ver. ... "fix-get.sh" script has been designed to
automate fix packages ... discovery and download for servers with Unix AIX versions up
to 5.3. ... (comp.unix.aix) - Re: Using Return Codes (PuTTY and AIX)
... I worked on a similar situation between a PC and an AIX box. ... In PROCOMM
Plus it was possible to have the host remotely execute a PROCOMM ... script that would
run on the PC. ... We've gotten a Windows batch job to log in with PLINK and start ...
(comp.unix.aix) - Help with Migration from AIX 4.3 to Solaris 9
... involved in a project to migrate a user from an IBM RS6000 running AIX ... print
to file so then through a valid print queue. ... Here you can see the shell script prfl0
ref above as backend ... (comp.unix.solaris) - Help with Migration from AIX 4.3 to Solaris 9
... involved in a project to migrate a user from an IBM RS6000 running AIX ... print
to file so then through a valid print queue. ... Here you can see the shell script prfl0
ref above as backend ... (comp.unix.aix) - Re: hidding the content of a script
... I think the mime "encryption" is good enough, ... installation package
that runs through the AIX admin tool SMIT and I use the ... >> I would like to make some
exercises for a small AIX ... >> The problem is that if they view the script
that does this, ... (comp.unix.shell)