From f6819a957fa259c79527edceba9f34261aad854c Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Mon, 17 Apr 2023 13:13:55 +0200 Subject: [PATCH] [URL-Check] Added python version --- Linux/url-check.sh | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 Linux/url-check.sh diff --git a/Linux/url-check.sh b/Linux/url-check.sh deleted file mode 100644 index b5c0cce..0000000 --- a/Linux/url-check.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/csh -f -set MODE=$1 -set CURL=/usr/bin/curl - -if ($MODE == no_auth) then - set URL=$2 - set HS=$3 - set STATUS=`$CURL -L -o /dev/null -s -w "%{http_code}\n" -m 1 $URL` - - else if ($MODE == auth) then - set AUTH=$2 - set URL=$3 - set HS=$4 - set STATUS=`$CURL -L -o /dev/null -s -w "%{http_code}\n" -m 1 --user $AUTH $URL` - - else - exit 1 -endif - -if ($STATUS == 200) then - $CURL -fsS --retry 3 $HS > /dev/null - else - exit 1 -endif -