I think os.execute will return the errorlevel for the command.... not for the reply of it..
os.execute('ping -c1 192.168.0.150') will always return true even if the ping is not successful because the command ping were executed with no error
anyhow... it runs with no error into my deomoticz installation...
UNLESS....
you delete the script while it is wtill runing... then I got such error
