Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 61962  / 1 Year ago, sat, march 25, 2023, 11:00:12

I've installed TV as a server on a Ubuntu 12.04 box running 24/7. Unfortunately, the daemon service sometimes bugs and disconnects. I can fix this at the terminal with :



sudo teamviewer --daemon <stop/start>


But this requires local access to the server, which is not always possible. I could make a script to periodically check (start and stop) the service,



But I do not know how to issue a sudo command within the script.
Can anyone help? Thanks!


More From » teamviewer

 Answers
0

Probably you don't need a script but a cron job that runs the command. Type sudo crontab -e, then append the following:



0 * * * * service teamviewerd restart


This will run the command each hour sharp, so you may want to modify it or be pending because you will be disconnected. You may also want to know why teamviewer disconnects, so a peek to the logfiles and a bug report may be necessary.


[#28424] Sunday, March 26, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
disdry

Total Points: 133
Total Questions: 128
Total Answers: 109

Location: Greenland
Member since Fri, Jul 31, 2020
4 Years ago
disdry questions
Tue, Apr 11, 23, 11:37, 1 Year ago
Thu, Oct 13, 22, 19:09, 2 Years ago
Fri, Oct 28, 22, 15:06, 2 Years ago
Sat, Feb 25, 23, 11:33, 1 Year ago
;