sawyl: (Default)
[personal profile] sawyl
I'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.

Profile

sawyl: (Default)
sawyl

August 2018

S M T W T F S
   123 4
5 6 7 8910 11
12131415161718
192021222324 25
262728293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 5th, 2026 04:23 pm
Powered by Dreamwidth Studios