Problem with "os.execute" in dzventz
Posted: Thursday 18 January 2018 10:00
Hello.
I'm making a script for rebooting a computer.
When i'm connect to domoticz with SSH, i have a command who is working :
*** ssh user@host -p port sudo reboot *** (user / host / port are different obviously)
but when i include this command in my script, it's not working !
*** os.execute('ssh user@host -p port sudo reboot') ***
Anybody can help me please ?
Many thanks in advance !
I'm making a script for rebooting a computer.
When i'm connect to domoticz with SSH, i have a command who is working :
*** ssh user@host -p port sudo reboot *** (user / host / port are different obviously)
but when i include this command in my script, it's not working !
*** os.execute('ssh user@host -p port sudo reboot') ***
Anybody can help me please ?
Many thanks in advance !