Tuesday, April 30, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 17083  / 1 Year ago, mon, february 27, 2023, 9:18:55

My question may seem weird but it really makes sense if your internet connection keeps going off every few hours.



I want to know how I can restart the network-manager by using a shell script.



now i know that sudo service network-manager restart is how you do it in the terminal, but sadly that doesn't work on a shell script.



Any ideas ?


More From » 12.04

 Answers
3

No its not weird at all, I too experience connectivity issues a lot when I use my usb net-setter modem.



enter image description here



Here's how you do it




gksu service network-manager restart




save it in a file with .sh extension and grant executable file permission by right clicking>>properties>>permissions


[#38115] Monday, February 27, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
berlorful

Total Points: 346
Total Questions: 90
Total Answers: 99

Location: Monaco
Member since Tue, Nov 30, 2021
2 Years ago
berlorful questions
Thu, Sep 2, 21, 10:12, 3 Years ago
Sun, May 9, 21, 20:55, 3 Years ago
Mon, Jan 16, 23, 23:19, 1 Year ago
Mon, Aug 29, 22, 05:43, 2 Years ago
;