Ian Dobson (Ian@fastnet.bc.ca)
Tue, 20 Oct 1998 01:20:14 -0800
Argh...!!!!!!
I know I don't have a clue what I am doing, but why does this not
work?????
it just loops forever, shouldn't it exit at some point?
I've tried changing $nostrobe to 0, 1, 2 and 3.. I couldn't get it to
ever stop looping..
#!/bin/bash
# script to check to see if strobe is still running
while [ $nostrobe=2 ]
do
nostrobe=`ps ax | grep -c "strobe"`
echo $nostrobe
echo sleeping
sleep 5
done
Ian Dobson
ICQ# 6746159
This archive was generated by hypermail 2.0b3 on Mon 02 Nov 1998 - 03:23:16 PST