Search   Feed   Browse   Add
Feed items 1 - 1 of 1 for June 2007

Charles Nadeau's Radio Weblog

A weblog about technology, tools and knowledge management

Automatically restarting KTorrent - June 27, 2007

KTorrent is unstable on my main machine, it crashes randomly. I wrote a little Bash script, I put in my crontab, to check if it runs and restart it when it doesn't: let numproc=$(ps aux grep -e "ktorrent$" wc -l) if $numproc -eq 0 ; then ktorrent else let numerr=$(ps aux grep -e "--appname ktorrent" grep -e "drkonqi" wc -l) if $numerr -eq 1 ; then let numproc=$(ps aux grep -e "--appname ktorrent" grep -e "drkonqi" awk 'print $2') kill..
http://radio.weblogs.com/0111823/2007/06/26.html#a589
Available Archives
- January (1 item)
- February (2 items)
- June (1 item)
- December (1 item)
Sponsored Links
© 2008 FeedCapsule.com  |  Contact