Get chrome to prompt for restart after update

Sajan Parikh sajan at parikh.io
Fri Apr 11 15:03:21 UTC 2014


On 04/11/2014 09:58 AM, Wes James wrote:
>
> I tried pkill chrome and pkill -f chrome and it does the same thing as 
> killall chrome.  I have to do it twice to kill all my chromes.  Doing 
> it once kills one of the chromes then I do it again and it kills the rest.
>
>  wes
If you do pkill -f first, it'll kill everything that matches.  The -f 
does the string search on the full command line, including arguments.  
Without the -f it only does the first X characters or just the command 
name or something like that.

If you want to check which PIDs you get back, use pgrep and pgrep -f and 
compare.  The -f will include the PIDs from pgrep without the -f as well.

Sajan Parikh





More information about the ubuntu-users mailing list