shutdown -r versus reboot - Raspberry Pi Forums


i running python script on pi's intend cause pi reboot if can't write windows server after 10 minutes (presumably because of issue connectivity or pi, not windows server).

1 of pis yesterday stopped writing windows server didn't appear reboot intended. python script uses command:

code: select all

os.system('shutdown -r now')
execute python script user account that's pi account in command line issuing command: "sudo python3 reboot.py".

need include "sudo" in python code, this?

code: select all

os.system('sudo shutdown -r now')
, what's difference between "shutdown -r now" , "reboot" command? when try, command line, entering "sudo reboot" prompts me user account's password, when enter "sudo shutdown -r now" doesn't prompt password.

famousdavis wrote:i running python script on pi's intend cause pi reboot if can't write windows server after 10 minutes (presumably because of issue connectivity or pi, not windows server).

1 of pis yesterday stopped writing windows server didn't appear reboot intended. python script uses command:

code: select all

os.system('shutdown -r now')
execute python script user account that's pi account in command line issuing command: "sudo python3 reboot.py".

need include "sudo" in python code, this?

code: select all

os.system('sudo shutdown -r now')
, what's difference between "shutdown -r now" , "reboot" command? when try, command line, entering "sudo reboot" prompts me user account's password, when enter "sudo shutdown -r now" doesn't prompt password.
use one:

code: select all

os.system('sudo shutdown -r now')
(are using import os)


raspberrypi



Comments

Popular posts from this blog

opencv3, tbb and rasp pi 2 - Raspberry Pi Forums

small ethernet problem - Raspberry Pi Forums

Multithumb configuration params not working? - Joomla! Forum - community, help and support