- Code: Select all
import subprocess
command = ["/Users/myriam/.nvm/versions/node/v9.11.1/bin/ps4-waker", "standby", "-t", "30000", "env=node"]
proc = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out, err = proc.communicate()
indigo.server.log(u"command error: %s" % err)
or something akin to that....