March 9, 2017 at 05:28 PMMar 9, 2017 Hallo, wie ist es möglich Bash Befehle als root auszuführen? Also beispielsweise os.system("sudo shutdown -h now")?
March 10, 2017 at 12:48 PMMar 10, 2017 Author Also ist das als automatisch gestartetes Program gar nicht möglich? Ich will mich ja nicht jedes mal selber auf die Konsole schalten
March 23, 2017 at 09:50 AMMar 23, 2017 Das geht z.B. so: os.system('echo tf | sudo -S -p "" shutdown -h now')
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.