Admin
Appearance
import subprocess
def restart_server():
subprocess.run(["sudo", "reboot"])
- Call the function to restart the system
restart_server()
import subprocess
def restart_server():
subprocess.run(["sudo", "reboot"])
restart_server()