$ wget --spider -S "http://localhost:1337" 2>&1 | awk '/HTTP\// {print $2}'
if it return 200 then it’s running
Advertisements
$ wget --spider -S "http://localhost:1337" 2>&1 | awk '/HTTP\// {print $2}'
if it return 200 then it’s running