From 9a51de9ad85e6235838f80a26db8303ca2ea7608 Mon Sep 17 00:00:00 2001 From: Remy Moll Date: Wed, 13 May 2020 16:23:36 +0200 Subject: [PATCH] With sh script --- run_periodically.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 run_periodically.sh diff --git a/run_periodically.sh b/run_periodically.sh new file mode 100644 index 0000000..5249ee0 --- /dev/null +++ b/run_periodically.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +if pgrep -x "python3" > /dev/null +then + python3 main.py +else + echo "Not running" +fi