Thread: How to kill process on Ubuntu 10.04 event
hi
in process of setting ubuntu torrent-server using 10.04, , need able kill transmission process if dsl connection ends whatever reason.
reason have 2 dsl accounts, 1 being used on router , capped (unshaped during day), , other uncapped (shaped during day). if dsl connection on ubuntu lost , internet connection on router used transmission, finish cap quickly.
on related note, inexperienced ubuntu user noticed when connect dsl eth0 seemingly disabled, meaning cannot connect ubuntu machine on lan using vnc or rdp.
appreciated.
there number of ways kill process if know name of process. here’s couple different ways can accomplish this. going assume process trying kill named irssi
kill $(pgrep irssi)
killall -v irssi
pkill irssi
kill `ps -ef | grep irssi | grep -v grep | awk ‘{print $2}’`
these techniques can useful in shell scripts, wouldn’t know process id , need restart or kill process.
http://www.howtogeek.com/howto/ubunt...-command-line/
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] How to kill process on Ubuntu 10.04 event
Ubuntu
Comments
Post a Comment