[Bug 723072] New: pidof does not return pid of a script
https://bugzilla.novell.com/show_bug.cgi?id=723072 https://bugzilla.novell.com/show_bug.cgi?id=723072#c0 Summary: pidof does not return pid of a script Classification: openSUSE Product: openSUSE 12.1 Version: Beta 1 Platform: x86-64 OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: ximi_github@hotmail.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux i686; rv:7.0) Gecko/20100101 Firefox/7.0 pidof does not return the pid of a script when using an absolute path. example: start firefox on the commandline
firefox
Another terminal:
pidof -x firefox returns the pid of firefox script pidof -x /usr/bin/firefox returns nothing.
No problems in openSuSE 11.4 Reproducible: Always Steps to Reproduce: 1. Start firefox ( or any other script ) 2. pidof -x firefox returns the pid 3. pidof -x /usr/bin/firefox returns nothing. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=723072
https://bugzilla.novell.com/show_bug.cgi?id=723072#c
zj jia
https://bugzilla.novell.com/show_bug.cgi?id=723072
https://bugzilla.novell.com/show_bug.cgi?id=723072#c1
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=723072
https://bugzilla.novell.com/show_bug.cgi?id=723072#c2
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=723072
https://bugzilla.novell.com/show_bug.cgi?id=723072#c3
--- Comment #3 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=723072
https://bugzilla.novell.com/show_bug.cgi?id=723072#c4
--- Comment #4 from Maxime Rijnders
https://bugzilla.novell.com/show_bug.cgi?id=723072
https://bugzilla.novell.com/show_bug.cgi?id=723072#c5
--- Comment #5 from Maxime Rijnders
firefox ps -ea | grep fire 2515 pts/1 00:00:00 firefox 2520 pts/1 00:00:25 firefox-bin
Let's try to get the pid of the binary 'firefox-bin' and the script 'firefox'
pidof firefox-bin 2520 pidof /usr/lib64/firefox/firefox-bin 2520
both commands return the pid, but if you try this with a bash script like 'firefox' you will get (do not forget to add the option -x for scripts)
pidof -x firefox 2515 pidof -x /usr/bin/firefox
The last command does not return the pid of the script. Root or no root, it does not matter. The system I am using is: Kernel: openSuse 12.1 Beta 1 Linux laptop-n53sn.sun 3.1.0-rc7-3-desktop #1 SMP PREEMPT Wed Sep 28 14:41:36 UTC 2011 (50fb02f) x86_64 x86_64 x86_64 GNU/Linux -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=723072
https://bugzilla.novell.com/show_bug.cgi?id=723072#c6
--- Comment #6 from Maxime Rijnders
https://bugzilla.novell.com/show_bug.cgi?id=723072
https://bugzilla.novell.com/show_bug.cgi?id=723072#c7
--- Comment #7 from Bernhard Wiedemann
participants (1)
-
bugzilla_noreply@novell.com