Browse Source

communicate with the process so it can finish

David 8 years ago
parent
commit
1c26a58604
1 changed files with 1 additions and 0 deletions
  1. 1 0
      camera1/handle-slide-syncer.py

+ 1 - 0
camera1/handle-slide-syncer.py

@@ -23,6 +23,7 @@ def on_message(client, userdata, msg):
     print(msg.topic+" "+str(msg.payload))
     if msg.topic == "video/slidesyncer/sync":
         p = subprocess.Popen(["/home/curso/code/snowmix/camera1/slide_syncer.sh"])
+        print(p.communicate())
 
 
 client = mqtt.Client()