> From [EMAIL PROTECTED] Sat Jul 26 07:35:08 2003 > > > > > On Sat, Jul 26, 2003 at 10:22:53AM +0100, David selby wrote: > > Writting a small script to make mozilla show the results of HTML code=20 > > written in vi, when vi saves, the script automaticly changes mozilla to= > =20 > > show that HTML. > >=20 > > I need to know if mozilla is running, if not I need to call it first ...= > =20 > > seemed simple > >=20 > > if ! ps ax | grep "mozilla-bin" &>/dev/null; then > > /usr/local/mozilla/mozilla -P web & > > ..... > [...] > > Ie its picking up on the grep process, finding "mozilla-bin", saying yep= > =20 > > its running, dont call mozilla & bang, script fails. > > ps --no-headers -C "mozilla-bin" | grep -q -- "-bin" >
This might help in the future, Seneca: ps a | grep slrn | grep -v grep 863 pts/3 S 0:00 slrn Alan -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]