Last few weeks I have been testing XMBC 9.11 Alpha/Beta on my Ubuntu Media system. Personally I think it is the best Media manager/player ever :).. But due to the fact it is still a beta release, the application sometimes does not respond or hangs and completely blocks the system.
The easies way to kill it and free your system without a reboot, is just open putty.exe and login remotely to your ubuntu system and issue the following command:
killall -9 xbmc.bin
This will terminate XBMC and will free your system. In my case I just restart XBMC :)
Random thoughts about programming for the web. Sometimes it will make sense, probably most of the time, it will not make sense.
Showing posts with label kill. Show all posts
Showing posts with label kill. Show all posts
Tuesday, December 15, 2009
Tuesday, November 17, 2009
Killing tasks/processes from the command line in Windows 7
Sometimes you quickly need to kill a task in Windows (mostly from the command line). With Windows 7 this can be done by using the taskkill command. First thing you need to do is start a command line with administrative priviledges:
Type in command in the start menu, when the Command Prompt shows up, right click and select Run as Administrator.
After a warning message (if UAC is turned on), the command line is shown. Before we kill something, we need to know what we would like to kill :). This can be done by issuing a tasklist command.
The tasklist command will show all the running tasks (similar to task manager). This list can be quite long depending on your system. You can quickly filter by issuing the /M switch, eg.
Now killing the task is the easy part. Just issue a taskkill /IM with the name of the task:
Type in command in the start menu, when the Command Prompt shows up, right click and select Run as Administrator.
After a warning message (if UAC is turned on), the command line is shown. Before we kill something, we need to know what we would like to kill :). This can be done by issuing a tasklist command.
The tasklist command will show all the running tasks (similar to task manager). This list can be quite long depending on your system. You can quickly filter by issuing the /M switch, eg.
taskkill /M vm*
will show all tasks (and modules) starting with vm in the name
Now killing the task is the easy part. Just issue a taskkill /IM with the name of the task:
The /IM specifies that we are using the image name and the /F at the end is used to specify we would like to kill the process forcefully. You can also kill a task by PID (process id) by using the /PID instead of /IM. It also allows you to kill multiple tasks eg:
taskkill /PID 230 349 230 /F
will kill processes 230, 349 and 230 simultaneously. The taskkill has much more functionality, eg killing multiple task based on filters, for example:
taskkill /IM note* /FI "windowtitle eq untitle*"
will kill every task name starting with note (eg notepad) and where the title starts with untitle, with other word kill all instances of empty notepad.
Enjoy!
Subscribe to:
Posts (Atom)