ps on T64 V4.0f PK4 and an ES40 (4CPU)

From: Smith, Lawrie <Lawrie.Smith_at_capita.co.uk>
Date: Fri, 15 Feb 2002 13:56:06 +0000

Is anyone aware of any bugs in ps with the above release?

 

I run a routine every night that first checks to make sure that another
instance of itself is not running.

Just occasionally, it seems to detect and kill itself, any ideas?

 

== snip

 

 

ps -eo pid,command > $LOGS_DIR/pid.log

ps -ef > $LOGS_DIR/process.log

 

SPID=$$

PROGNAME=`basename $0`

echo "This is the id for the cntrl script $$" >> pid1.log

echo "\nShould not beable to find ods_cra_ctl.sh in the info below\n" >>
$LOGS_DIR/pid1.log

ps -eo pid,command|grep -v grep|grep -v $SPID >> $LOGS_DIR/pid1.log

 

SCOUNT=`ps -eo pid,command|grep -v grep|grep -v $SPID|grep -c $PROGNAME`

 

if [ $SCOUNT -gt 0 ] ; then

   echo "`basename $0` Process already running. Aborting run. Fail _at_ `date`"

   exit 1

fi

 

== snip

 

 

Kind regards

Lawrie Smith
Capita Technical Services
West Malling

email: lawrie.smith_at_capita.co.uk
Tel: 01732 877266

 



**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************


Received on Fri Feb 15 2002 - 13:54:54 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:43 NZDT