Wednesday, May 1, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 2543  / 3 Years ago, wed, july 7, 2021, 5:32:10

I have a problem with my Ubuntu machine. Every 15-20 mins my wifi stops working. The connection remains intact but internet access dies.



Whenever this happens - I restart Network-Manager and all is well for another 15 mins.



What I would like to do is set up a CRON job which does this for me. I have the following in my crontab...



*/2 * * * * service network-manager restart


(It is 2 mins for debugging)



This does not work though. I read online that when doing things akin to this via CRON, one needs to specify the full path (which I do not know).



Can anyone help me with this problem?


More From » networking

 Answers
4

In the end I just added the paths required to the top of the crontab and it all worked. Internet is unavailable for 30ish seconds once every 15 mins which is no biggy in my case.



Thanks for the input people.


[#30464] Wednesday, July 7, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rofity

Total Points: 182
Total Questions: 98
Total Answers: 115

Location: Albania
Member since Sat, Jan 7, 2023
1 Year ago
;