Update: I'm pretty much in business with this.
The following gets me what I need:
- Code: Select all
command = process_I_want_to_run
proc = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
out, err = proc.communicate()
indigo.server.log(u"command error: %s" % err)
I introduced an error into the command subprocess and it was properly written to the Indigo log. There's more I can do with respect to Jay's suggestion, but this gets me in the neighborhood while I monkey around. In the irony department, I had the bulk of this in other code based on a tip from @raneil--for a completely different reason. No matter--thanks for the help guys!
Dave
Edit: to correct syntax errror of last code line.