Topic: [SOLVED] pgrep won't work
Is my pgrep broken?
If I run
pgrep "firefox"it just hangs and I have to use Ctrl+C to get back to the prompt, and bash reports "no such file or directory". It's the same with any other name I try: conky, gedit or whatever, with or without quotes. pkill seems to work OK, but I've not tried pgrep before.
which pgrepgives /usr/bin/pgrep.
(I want to use it in a script to open a url in firefox if it's already up and running, or dillo if it's not.)
Last edited by johnraff (2010-03-12 16:29:20)
------------------------
( a boring Japan blog , and idle twitterings )
“There is more Unix-nature in one line of shell script than there is in ten thousand lines of C.” - Master Foo