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