Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Restart the dock script' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Restart the dock script
Authored by: davidtrzcinski on Jun 28, '11 10:52:10PM

An updated version if anyone is interested (this is compatible with Snow Leopard and Lion) is :

kill $(ps -xaco pid,command | egrep -x '[[:space:]]*[[:digit:]]+ Dock' | sed -e 's/Dock//g' -e 's/ //g')

it could probably be cleaned up using awk instead of sed, but still..



[ Reply to This | # ]