Tugger the SLUGger!SLUG Mailing List Archives

[SLUG] Re: Kill Firefox

Isnt it ps ( in a terminal) to get the PID for Firefox, then kill "PID"?


Still a newbie

slug-request@xxxxxxxxxxx wrote:
Send slug mailing list submissions to

To subscribe or unsubscribe via the World Wide Web, visit
or, via email, send a message with subject or body 'help' to

You can reach the person managing the list at

When replying, please edit your Subject line so it is more specific
than "Re: Contents of slug digest..."

Today's Topics:

   1. "Right" way to kill firefox from a script? (Amos Shapira)

[SLUG] "Right" way to kill firefox from a script?
"Amos Shapira" <amos.shapira@xxxxxxxxx>
Fri, 1 Aug 2008 09:26:19 +1000
SLUG <slug@xxxxxxxxxxx>

SLUG <slug@xxxxxxxxxxx>


Platforms: Linux, OS X, Windows
Firefox: 2 and 3

We have a test script which runx Firefox to visit a web site and after
a few seconds it stops it.

Right now we use "killall firefox" but this causes it to behave as if
it crashed the next time it comes up.

I found in http://tinyurl.com/5qk9so mentioning of "-kill" and
"-killAll" but without explanation of how to use it, and a simple
attempt to use it didn't cause the browser to quit so I'm not even
sure it does what I guess it does.

What's the "right way" to cause firefox to exit properly?

Otherwise - can I change something in Firefox's configuration to cause
it to ignore crashes?

Alternatively - what files on the disk should I change/remove to
"clean up" a crashed session?




SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html