Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Other discussions > Linux and software for Linux
Register FAQ Members List Calendar Mark Forums Read

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-08-2010, 08:58 AM
walterk01 walterk01 is offline
Junior Member
 
Join Date: Jul 2007
Posts: 16
walterk01 is on a distinguished road
Default

How to close / kill application in Ubuntu 10.04 Lucid Lynx


To stop/kill any app via the terminal use "Ctrl+C" while the terminal window is open.

If its been closed it should stop but if not run system monitor (System->Administration->System Monitor or Alt+F2 then type "gnome-system-monitor" without the quotes) search for the process in the Processes tab and either Kill or End it, this is the linux version of windows Ctrl+Alt+Del

Theres also a cmd you can use from the terminal to end or kill processes that are already running but you need to know the exact process ID number and cant just kill it by app name "kill -9 process id" to get the exact id you can run from the terminal "ps aux" which will list every process currently running , and the user it belongs to. Its going to be a long list and the ID number will be next to the username. Or
Quote:
Originally Posted by Stream Recorder View Post
Type the following in the Terminal:
Code:
ps axwww | grep KEYWORD
This will show a list of processes that have KEYWORD in them.


Example: Killing Replay Media Catcher from command line:

Code:
admin@admin-desktop:~$ ps axwww | grep Replay
15864 ?        Sl     0:01 C:\Program Files\Replay Media Catcher\MediaCatcher.exe                                                                 
15903 pts/1    S+     0:00 grep --color=auto Replay
Look for the lowest number process id (the first column) that says something like "C:\Program Files\Replay Media Catcher\MediaCatcher.exe"

Then use this number to kill the process with (kill -9 PROCESS_NUMBER):
Code:
admin@admin-desktop:~$kill -9 15864
admin@admin-desktop:~$ ps axwww | grep Replay
15903 pts/1    S+     0:00 grep --color=auto Replay

You can also use the pidof to find the process id and then use this process id with the kill command. For example, if you want to kill the tvtime process:
Code:
admin@admin-desktop::~/rtmpdump$ pidof tvtime
10673
admin@admin-desktop::~/rtmpdump$ kill -9 10673
Reply With Quote
 
Tags: , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 04:40 AM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons