On Sun, 2003-05-11 at 22:18, Chris J wrote: > > killall fetchmail > On some systems (Solaris being one) killall does not accept a program name > as an argument; killall just does exactly what it's named to do. Kill all > running processes :) True, I was assuming SuSE since that's what Richard runs. kill `pgrep fetchmail` also works, I think. > Another point as well, thinking about it, the ps pipeline would be better > off as well with a "grep -v grep" after the "grep fetchmail", as otherwise > you've got a race where you could kill the pipeline prematurely if the > "grep fetchmail" returns itself :) It probably would kill itself, thinking about it. But it would most likely be the very last process in the grep list, so... :o) The ps/grep/cut thing was meant just to show TMTOWTDI, I think people use pgrep in real life :) Cheers, Alex.
Attachment:
signature.asc
Description: This is a digitally signed message part