[FREEBSD] Added url-check.csh script
This commit is contained in:
parent
57a760b47c
commit
5d2d49fa04
10
FreeBSD/url-check.csh
Normal file
10
FreeBSD/url-check.csh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/csh -f
|
||||||
|
set URL=$1
|
||||||
|
set HS=$2
|
||||||
|
set STATUS=`curl -L -o /dev/null -s -w "%{http_code}\n" -m 1 $URL`
|
||||||
|
|
||||||
|
if ($STATUS == 200) then
|
||||||
|
/usr/local/bin/curl -fsS --retry 3 $HS > /dev/null
|
||||||
|
else
|
||||||
|
exit 1
|
||||||
|
endif
|
Loading…
Reference in New Issue
Block a user