From 6db35a5230578e296d9f493b28e6330e22569c8f Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Wed, 4 Sep 2019 22:06:01 +0200 Subject: Integrate also nagios-based monitoring here --- lib/remote/run.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 lib/remote/run.sh (limited to 'lib/remote/run.sh') diff --git a/lib/remote/run.sh b/lib/remote/run.sh new file mode 100644 index 0000000..fdd7311 --- /dev/null +++ b/lib/remote/run.sh @@ -0,0 +1,13 @@ +function run_ { + local output=$(eval source "$@") + + flock -x $0 echo -e "$output" +} + +function run { + if [ $parallel -gt 0 ]; then + run_ "$@" & + else + run_ "$@" + fi +} -- cgit v1.2.3