aboutsummaryrefslogtreecommitdiffstats
path: root/runprog.py
diff options
context:
space:
mode:
Diffstat (limited to 'runprog.py')
-rw-r--r--runprog.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/runprog.py b/runprog.py
index a564678..4568c59 100644
--- a/runprog.py
+++ b/runprog.py
@@ -11,13 +11,13 @@ while True:
sleep(60 * 60 * 2)
- #print("closing...")
- #file = open("pid.txt", "r")
- #pid = file.readlines()[0]
- #file.close()
+ print("closing...")
+ file = open("pid.txt", "r")
+ pid = file.readlines()[0]
+ file.close()
- #subprocess.run(["kill", pid])
+ subprocess.run(["kill", pid])
thread.terminate()
- #print("killed ", pid)
+ print("killed ", pid)