I made a script to close teamviewer and reopen it every hour. I am now testing it every 5 seconds, but the loop is simply not working. The script is running correctly, but one time only.
I need your help.
#!/bin/bash
while :
do
echo "hello"
killall -9 TeamViewer.exe &> sample.s
sleep 1
killall -9 teamviwerd &> sample.s
sleep 5
teamviewer &> sample.s
sleep 5
done
stop
orrestart
option for the service. See http://askubuntu.com/questions/328519/why-teamviewer-keeps-running-in-the-background/328604#328604 – Rinzwind Nov 03 '13 at 16:17&&
and put them on 1 line?) -your 2nd killall has a typo in the name.