Re: Shell script / Python / Node / Newb lost ...
Posted: Mon Apr 23, 2018 9:05 pm
@howartp, you mean like this?
or something akin to that....
- 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....