From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653731622259.tru64-unix-managers.marc@archive.invalid> From: "Smith, Lawrie" Date: Fri, 15 Feb 2002 13:56:06 +0000 To: tru64-unix-managers Subject: ps on T64 V4.0f PK4 and an ES40 (4CPU) X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653731622259 MIME-Version: 1 Content-Type: multipart/mixed; boundary="------_=_NextPart_000_01C1B628.83906530" This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_000_01C1B628.83906530 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1B628.83906530" ------_=_NextPart_001_01C1B628.83906530 Content-Type: text/plain 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 @ `date`" exit 1 fi == snip Kind regards Lawrie Smith Capita Technical Services West Malling email: lawrie.smith@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 ********************************************************************** ------_=_NextPart_001_01C1B628.83906530 Content-Type: text/html

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 @ `date`"

   exit 1

fi

 

== snip

 

 

Kind regards

Lawrie Smith
Capita Technical Services
West Malling

email:  lawrie.smith@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
**********************************************************************
------_=_NextPart_001_01C1B628.83906530-- ------_=_NextPart_000_01C1B628.83906530 Content-Type: text/html; name="header.htm" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="header.htm" Content-ID:

CAPITA = Technical Services

=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 = Capita (WM) Technical Services=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0 15/02/02C:\Program Files\Microsoft Office\Templates\Normal.dot1115/02/02C:\Program Files\Microsoft = Office\Templates\Normal.dot11