tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Christopher Knorr <cknorr@trapsystems.com>
To: tru64-unix-managers@ornl.gov
Subject: Programs started from cron have a nice value of 2 (not 0)
Date: Mon, 30 Apr 2007 13:58:26 -0400	[thread overview]
Message-ID: <D35CC0EF615300448C49D28BCA760575F455C3@mail1.hopsdc.com> (raw)

Hi all,

I have an ES80 with Tru64 Unix V5.1B. I've set up a small shell script
which runs out of cron and, if the script detects that a particular
executable isn't running, it starts it. The script is shown below.

The weird and very problematic thing is that it consistently starts it
with a nice value of 2. I have to "renice" it back to 0.

Any idea why this would be happening??

Thoughts/ideas/suggestions much appreciated!

Chris
-=-=-=-=-=
#!/bin/sh 
SYSTEM=`/usr/bin/uname -n` 
USAGE="usage: angel PROCESSNAME" 
if [ $# -lt 1 ]; then 
	echo ${USAGE} 
	exit 1 
fi 
PROCNAME=$1 
pid=`/sbin/ps -e | grep -w ${PROCNAME} | grep -v grep | grep -v angel |
head -1` 
if [ ! -n "${pid}" ]; then 
	/usr/bin/mailx -s "${PROCNAME} is down" cknorr@trapsystems.com <
/home/vlink/angel.dir/vericredit2.dir/msg.txt
	cd /home/vlink/vlink2/vericredit
	./VeriCredit2 &
Fi



                 reply	other threads:[~2007-04-30 17:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox