Skip to content

shell / random Cheat Sheet

wget - проверка status code

statusCode=$(wget -qSO- --spider localhost:8000 2>&1)
echo $statusCode | grep "200 OK"

Comments