Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!samsung!munnari.oz.au!brolga!eric From: eric@brolga.cc.uq.oz.au (Eric Halil) Newsgroups: comp.unix.questions Subject: sps won't stop running Message-ID: <1991Mar18.004506.22365@brolga.cc.uq.oz.au> Date: 18 Mar 91 00:45:06 GMT Organization: Prentice Computer Centre, The University of Queensland, Australia. Lines: 26 Hi, I have a shell script which needs to see if a process is running and if not restart it. I check to see if the process is running using the following line if sps w | grep -v grep | grep "$PROCESS" >/dev/null 2>&1 then : else $PROCESS & fi where $PROCESS contains the process name. The problem is that occasionally sps doesn't stop running! It just keeps going and going--I need to kill it to stop it. A sps on the runaway sps process shows it's status as RUN. Can anyone explain whats going on?? Thanks, Eric. ---- Eric Halil |Internet/CSnet: eric@cc.uq.oz.au Prentice Computer Centre |Bitnet: eric%cc.uq.oz.au@uunet.uu.net University of Queensland 4072 |UUCP: uunet!munnari!cc.uq.oz!eric AUSTRALIA -- Phone: +61 7 365 3610 |JANET: eric%cc.uq.oz.au@uk.ac.ukc