SilkyJackson / tintwizard

Automatically exported from code.google.com/p/tintwizard
0 stars 0 forks source link

Use of "pidof" is not portable. #38

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Some systems do not have the "pidof" command, please consider using "pgrep" 
instead.

Original issue reported on code.google.com by vex...@gmail.com on 14 Jun 2010 at 10:07

GoogleCodeExporter commented 8 years ago
Thank you - I did not know about this command. I have switched to 'pgrep'. An 
updated version can be found on the download page, or from the SVN repository.

Original comment by eua...@gmail.com on 14 Jun 2010 at 10:48

GoogleCodeExporter commented 8 years ago
Same goes for killall, this is a linuxism. Use pkill instead. Also for calls to 
pgrep/pkill -x will be useful:

     -x      Require an exact match of the process name, or argument list if
             -f is given.  The default is to match any substring.

Original comment by vex...@gmail.com on 14 Jun 2010 at 12:43

GoogleCodeExporter commented 8 years ago
This is what happens when a new linux user tries to program exclusively for 
linux, haha. Thanks for the advice.

Yeah I used -x for pgrep, to prevent it from closing tint2conf. Thanks again. 
I'll update to use pkill when I have the time.

Original comment by eua...@gmail.com on 14 Jun 2010 at 5:22