2015-01-15, 18:03
I created an Addon a little while back that will turn my NAS(a separate machine) on and off. How would one go about using variables in this to get the username and password from Settings?
os.system('ssh username@ipaddress "sudo shutdown -h now"')
Or more specifically, do I have to do anything special, because the variables are quoted inside parentheses, and part of a shell command?
os.system('ssh username@ipaddress "sudo shutdown -h now"')
Or more specifically, do I have to do anything special, because the variables are quoted inside parentheses, and part of a shell command?