Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

My main desktop has Mint 14 and I approached it via SSH from another computer, because I didn't have a screen on the Mint one. Then I tried to start teamviewer just I order to launch its desktop session remotely. I started the teamviewer and everything ran fine, but then I tried to stop this application from the terminal and this is what happens:

Checking:

x@x-pc /opt/teamviewer8 $ ps -ef | grep team
root      1567     1  0 20:55 ?        00:00:00 /opt/teamviewer8/tv_bin/teamviewerd -f
x         2892     1  0 21:41 ?        00:00:00 /opt/teamviewer8/tv_bin/wine/bin/wineserver
x         2914  2822  0 21:48 pts/0    00:00:00 grep --colour=auto team

Using one-liner just to feel myself more hacker like :)

sudo for i in `ps -ef | grep team | awk {'print $2'} | xargs`; do kill -9 $i; done

Checking again:

x-pc teamviewer8 # ps -ef | grep team
root      3003     1  0 21:50 ?        00:00:00 /opt/teamviewer8/tv_bin/teamviewerd -f
root      3009  2957  0 21:50 pts/0    00:00:00 grep --colour=auto team

Killing again:

x-pc teamviewer8 # ps -ef | grep team
root      3003     1  0 21:50 ?        00:00:00 /opt/teamviewer8/tv_bin/teamviewerd -f
root      3011  2957  0 21:57 pts/0    00:00:00 grep --colour=auto team
x-pc teamviewer8 #
x-pc teamviewer8 #
x-pc teamviewer8 #
x-pc teamviewer8 #
x-pc teamviewer8 # kill -9 3003
x-pc teamviewer8 #
x-pc teamviewer8 #
x-pc teamviewer8 # ps -ef | grep team
root      3012     1  2 21:57 ?        00:00:00 /opt/teamviewer8/tv_bin/teamviewerd -f
root      3017  2957  0 21:57 pts/0    00:00:00 grep --colour=auto team
#########################################

No matter how many times I killed it, it receives new PID. How can I kill it?

share|improve this question
1  
(For your one-liner: look into pgrep/pkill) –  Mat Dec 7 '13 at 20:13
2  
Try killall -9 teamviewer. If doesn't work please show the output of pstree. –  mavillan Dec 7 '13 at 20:42

4 Answers 4

If you do

teamviewer --daemon stop

you stop it once but it starts again upon next boot, but with

sudo update-rc.d teamviewerd remove

you also prevent it from starting itself on bootup

share|improve this answer

Try to stop systemd service (if you use systemd):

# systemctl stop teamviewerd
# systemctl disable teamviewerd
share|improve this answer
    
No, actually I do not use it. –  Dread X Dec 7 '13 at 21:12

Try the following:

# teamviewer --daemon stop
share|improve this answer

To disable Teamviewer on startup :

teamviewer --daemon disable
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.