I got this script
import os
shutdown = input("Do you wish to shutdown your computer ? (yes / no): ")
if shutdown == 'no':
exit()
else:
os.system("shutdown /s /t 1")
and when I run it and enter yes it says "shutdown: NOT super-user"
I got this script
import os
shutdown = input("Do you wish to shutdown your computer ? (yes / no): ")
if shutdown == 'no':
exit()
else:
os.system("shutdown /s /t 1")
and when I run it and enter yes it says "shutdown: NOT super-user"