Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Ang: Re: Unisx question
>
> Well doesthat answer reply to the question: I have for instance this
> script
>
> /konto/load.sh
>
> that line is included in the main unix script and I want it to be logged
> if that script( load.sh ) doesnt start at all.
>
> which is includedin the main unix
If the start of load.sh is:
echo $$ > /var/run/$(basename $0).pid;
and it ends with:
echo "Finito" >> /var/run/$(basename $0).pid;
then you can check for the file, it's pid and the exit.
After checking the file unlink it. At that point you can check if the thing started the next time around.
-- Steven Lembark 2930 W. Palmer Workhorse Computing Chicago, IL 60647 +1 800 762 1582 -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Steven Lembark INET: lembark_at_wrkhors.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Sun Jan 27 2002 - 03:24:34 CST
![]() |
![]() |