From: Deepak John Cutinha (deepak_cutinha@yahoo.com)
Date: Thu Oct 03 2002 - 09:45:41 EDT
Thanks to :
Vance_Brasher
Allan.Marillier
Andy Cranston
Greg keenan
Bill.thompson
Bill Hassell
Sandip Samanta
Suggestions include :
STAT=`ps -eaf | grep -v grep | grep -c watcher.sh`
if [ $STAT -gt 0 ]
then
exit
fi
Or Another option is :
You could write a empty file (sometimes called a lock
file) when your
script runs and rm it when finished. Do a check when
the script firsts
starts to see if file exists, if not carry on....
Will summarize more when I test the options...
-Deepak
__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
-- ---> Please post QUESTIONS and SUMMARIES only!! <--- To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl Name: hpux-admin@dutchworks.nl Owner: owner-hpux-admin@dutchworks.nl Archives: ftp.dutchworks.nl:/pub/digests/hpux-admin (FTP, browse only) http://www.dutchworks.nl/htbin/hpsysadmin (Web, browse & search)
This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:20 EDT