리눅스
curl로 http status code만 뽑기
혜룐
2015. 12. 3. 16:03
특정 주소를 health-check해서 200코드가 아닌 경우 알림을 준다거나.. 뭐 그럴때?
curl -I http://www.nate.com 2>/dev/null | head -n 1 | cut -d$' ' -f2