From b0b7c6471858421cde54dc34d2779e750446e5a4 Mon Sep 17 00:00:00 2001 From: Jacek Kowalski <Jacek@jacekk.info> Date: Mon, 02 Nov 2020 19:47:07 +0000 Subject: [PATCH] Create run.sh script --- run.sh | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..2b70223 --- /dev/null +++ b/run.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +DIRNAME=$(dirname "$0") +cd "${DIRNAME}" + +( +flock -n 200 || exit 1 + +while true +do + php download.php + sleep 4 +done + +) 200>./lock + -- Gitblit v1.9.1