From aa35edab730d5df2bd5baddea0c0d1ae335bd753 Mon Sep 17 00:00:00 2001 From: hujiebin Date: Fri, 19 May 2023 14:24:06 +0800 Subject: [PATCH] Create run.sh --- run.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 run.sh diff --git a/run.sh b/run.sh new file mode 100644 index 0000000..4573ad0 --- /dev/null +++ b/run.sh @@ -0,0 +1,14 @@ +#!/usr/bin/bash +if [ $# -lt 1 ] +then + echo "Parameters missing." + echo "Usage: $0 " + exit +fi + +while : +do + $1 + printf "$(date) : $1 return $?, wait for 5 seconds to restart\n" + sleep 5 +done \ No newline at end of file -- 2.22.0