Published in: Other
ps ax | grep lookupd | grep -v grep | perl -ne 'split; print $_[0]' | xargs sudo kill -HUP
Comments
Subscribe to comments
You need to login to post a comment.
bash Cookbook: Solutions and Examples for bash Users
bash Cookbook teaches shell scripting the way Unix masters practice the craft. It presents a variety of recipes and tricks for all levels of shell programmers so that anyone can become a proficient user of the most common Unix shell -- the bash shell -- and cygwin or other popular Unix emulation packages.
remysharp on 09/25/07
textmate mac DNS lookupd darwin
Published in: Other
ps ax | grep lookupd | grep -v grep | perl -ne 'split; print $_[0]' | xargs sudo kill -HUP
Subscribe to comments
You need to login to post a comment.
I've never sure whether to trust the /var/run/ directory. It should be the place to go to for all the pid files, but I'm sure in the past, I've had a process running and due to some crash (or another) the pid file wasn't right...(that doesn't sound totally correct, but it's why I tend to grab the running pid from ps).
Oops,
cat /var/run/lookupd.pidmust be between backticks.Or with less pipes ;-) sudo kill -HUP
cat /var/run/lookupd.pid