Can someone tell me why pkill won't work on firefox anymore?
Its working on my Linux Box. I am using CentOS.
pkill works just fine with Firefox.
Show us how you are using pkill and somebody will be able to show you what you are doing wrong.
$ pkill firefox
fireffox? Hehehe. Is that a typo only in your forum post or is it present in the command you've been using on your system?
Regards,
Alister
Its a typo ;). I'm typing it right in my terminal :).
With firefox running, what is the output of
$ ps -ef | grep firefox
$ pgrep firefox
I'm being extra thorough :).
[bob@hi ~]$ ps -ef | grep firefox
bob 2421 1483 4 Oct10 ? 01:16:22 /usr/lib/xulrunner-2/xulrunner-bin /usr/lib/firefox-4/application.ini
bob 2474 2421 4 Oct10 ? 01:11:54 /usr/lib/xulrunner-2/plugin-container /home/bob/.mozilla/plugins/libflashplayer.so -grebase /usr/lib/xulrunner-2 -appbase /usr/lib/firefox-4 2421 true plugin
bob 8350 6363 0 13:57 pts/1 00:00:00 grep --color=auto firefox
[bob@hi ~]$ pgrep firefox
[bob@hi ~]$ pkill firefox
[bob@hi ~]$ ps -ef | grep firefox
bob 2421 1483 4 Oct10 ? 01:16:26 /usr/lib/xulrunner-2/xulrunner-bin /usr/lib/firefox-4/application.ini
bob 2474 2421 4 Oct10 ? 01:11:54 /usr/lib/xulrunner-2/plugin-container /home/bob/.mozilla/plugins/libflashplayer.so -grebase /usr/lib/xulrunner-2 -appbase /usr/lib/firefox-4 2421 true plugin
bob 8354 6363 0 13:57 pts/1 00:00:00 grep --color=auto firefox
In your ps output, there is no firefox command running. There is however a xulrunner-bin that is responsible for executing firefox.
By default, pgrep does not match patterns against command line arguments (that requires -f).
Regards,
Alister
You can aways try
pkill -9 firefox
the -9 is a signal that tells the pkill command to be an aggressive kill. I would suggest looking at the different signals you can send to a process with kill or pkill by doing a
man pkill
or
man kill
The signal sent is irrelevant if there's no process to receive it.
In particular, pay attention to the semantics of 'pattern' and the -f option.
Regards,
Alister
That explains why some of us have no problems pkilling Firefox and some do. You are using an older version of Firefox.
More modern versions of Firefox on Linux invoke a $LIBDIR/firefox/firefox executable and not xulrunner.