Jared 2 years ago
parent
commit
accdee560e
1 changed files with 10 additions and 0 deletions
  1. 10 0
      console/restart_seo_tiny_docker.py

+ 10 - 0
console/restart_seo_tiny_docker.py

@@ -0,0 +1,10 @@
+import rpyc
+import os
+conn = rpyc.classic.connect("192.168.192.45",18812)
+conn.execute('import os')
+ros = conn.modules.os
+ros.system('docker restart tiny1')
+#ros.system('docker restart 62eab82f7759') 
+#print('after restart')
+#time.sleep(11)
+#print('after wait')