Skip to content

Instantly share code, notes, and snippets.

View realtimeprojects's full-sized avatar

Claudio Klingler realtimeprojects

View GitHub Profile
try:
result = subprocess.Popen(["/bin/bash","/home/linaro/photobooth/photobooth_process.sh"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out, err = result.communicate()
if result.returncode == 0:
return "ok"
return "%s %s %s" % (result.returncode, err, out), 500
except OSError as e:
return " ",e