Re: bash: finding if mozilla is running
From: Alan Connor (alanconnor_at_earthlink.net)
Date: 07/26/03
- Previous message: Shyamal Prasad: "Re: Can't enable DMA"
- Maybe in reply to: David selby: "bash: finding if mozilla is running"
- Next in thread: Greg Norris: "Re: bash: finding if mozilla is running"
- Reply: Greg Norris: "Re: bash: finding if mozilla is running"
- Reply: K S Sreeram: "Re: bash: finding if mozilla is running"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 26 Jul 2003 07:36:47 -0700 To: debian-user@lists.debian.org
> From seneca-cunningham@rogers.com 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 debian-user-request@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
- Previous message: Shyamal Prasad: "Re: Can't enable DMA"
- Maybe in reply to: David selby: "bash: finding if mozilla is running"
- Next in thread: Greg Norris: "Re: bash: finding if mozilla is running"
- Reply: Greg Norris: "Re: bash: finding if mozilla is running"
- Reply: K S Sreeram: "Re: bash: finding if mozilla is running"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|