Awkward problem...
Apr. 19th, 2005 03:33 pmI've finally fixed a problem that's been bugging on and off for the last two years. It turns out that:
ps -o comm -p `cat $jsv_pid` | awk '! /COMMAND/ {
if(/nqs_/) { exit(0) } else {exit(1)}}' Should, of course, have been something like: ps -o comm -p `cat $jsv_pid` | awk 'BEGIN {x=1}
! /COMMAND/ { if($0 ~ /nqs_/) {x=0} else {x=1}}
END {exit(x)}' Finally, I can sleep safe in the knowledge that I'm not going to get woken up in the middle of the night with a request to clean up after a messy system crash.