pkill won't work on firefox anymore


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users pkill won't work on firefox anymore
# 8  
Old 10-11-2011
Quote:
Originally Posted by fpmurphy
With firefox running, what is the output of
Code:
$ ps -ef | grep firefox
$ pgrep firefox

I'm being extra thorough Smilie.

Code:
[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

# 9  
Old 10-11-2011
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
# 10  
Old 10-11-2011
You can aways try
Code:
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
Code:
man pkill

or
Code:
man kill

# 11  
Old 10-11-2011
Quote:
Originally Posted by lazytech
You can aways try
Code:
pkill -9 firefox

The signal sent is irrelevant if there's no process to receive it.

Quote:
Originally Posted by lazytech
Code:
man pkill

In particular, pay attention to the semantics of 'pattern' and the -f option.

Regards,
Alister
# 12  
Old 10-12-2011
Quote:
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
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. What is on Your Mind?

They won't need so many sys admins anymore

Nice eye catching title huh ;) I got laid off along with 55000 others from HP worldwide have been expecting this for some time and now it's finally my turn. Most of the folks I know get laid off at around this age of 40+ so do take note. Ideas that ran thru my head this last few weeks:... (16 Replies)
Discussion started by: sparcguy
16 Replies

2. UNIX for Advanced & Expert Users

Libvirt does not work correctly anymore on my gentoo

Hi, Since a year my libvirtd does not work anymore on my Gentoodesktop. In the meantime a used virtualbox. But I would like to have back libvirt. The problem was after libvirt should not only work with root privileges. I deinstalled all things with libvirt an kvm. I removed all things from /var... (4 Replies)
Discussion started by: darktux
4 Replies

3. Shell Programming and Scripting

Color prompt with file numbers does not work anymore

I have used this color prompt on my servers for long time, in file ~\.bashrc Black="\" Dark="\" Blue="\" LBlue="\" Green="\" LGreen="\" Cyan="\" LCyan="\" Red="\" LRed="\" Purple="\" LPurple="\" Brown="\" Yellow="\" LGray="\" White="\" Reset="\" PS1="$Yellow\u@\h $LBlue\w... (4 Replies)
Discussion started by: Jotne
4 Replies

4. UNIX for Dummies Questions & Answers

Images won't work?

Hello, Images won't work on UNIX when I try posting them on my website I'm working on. It doesn't show the image, and it's simply erroring. Help! Thanks! (5 Replies)
Discussion started by: yazan
5 Replies

5. BSD

Install cd won't work

Hi! I'm sure that somebody here installed freeBSD from a download of a virtual disc (.iso). But I made 5 downloads of 5 differents freeBSD installation (and no one has worked).Can somebody tell me where to download and how (if needed) to prepare the cd? (8 Replies)
Discussion started by: maxum
8 Replies

6. Solaris

string extraction won't work. Why?

#!/usr/bin/ksh set -x testfile=my.test.file.flag echo ${testfile: (-4)} #/home/maldohe/scripts/spawn1& sleep 3 echo myspawn is now ending exit Background: I am trying to extract the word flag from anf given file name. This is a demo script that I am working on to fix a production issue.... (8 Replies)
Discussion started by: Harleyrci
8 Replies

7. UNIX for Dummies Questions & Answers

sed won't work

Hi All, can anybody tell me what's wrong with this code? # SEARCH replaced by REPLACE #!/bin/bash SEARCH="95$$ 0 t" REPLACE="95$$ 1 t" for I in `ls *000.inp | cut -c-12`; do echo $I sed 's/$SEARCH/$REPLACE/' ${I}-000.inp > ${I}-100.inp done It don't replace the string... (5 Replies)
Discussion started by: f_o_555
5 Replies

8. UNIX for Dummies Questions & Answers

connection doesn't work anymore

Hello, first of all, I want to make myself clear about my language. I'm brazilian, so I ask you all to understand if i commit any mistake with the grammar. Here is the problem. Some days ago I needed to use a "sh" command in the Terminal (I use a Mac OSX 10.5.6) followed by a file... (0 Replies)
Discussion started by: anubisbr
0 Replies

9. Solaris

Sun Fire won't boot anymore

Hi all - I have an issue with our (way old) single processor SunFire 280R, running Solaris 9.0.4. It won't boot even after multiple power cycles. There was a power outage last week end in the computer room, so this might have to do. In normal boot mode, the screen shows a single line : ... (5 Replies)
Discussion started by: bostella
5 Replies

10. UNIX for Dummies Questions & Answers

why won't this Work?

hey programmers! 1-why won't gcc accept as an argument? i tried the recommendations on the man page of getch(),..etc. nothing worked. 2-why it won't see <iostream> && <fstream> even if i implemented the function as follow std::cout<<"..etc"<<endl; 3-after i type this code in it gives... (6 Replies)
Discussion started by: mbabeli
6 Replies
Login or Register to Ask a Question