I have a webservice provided at http://localhost/test/testweb
http://localhost/test/testweb
I want to write a script to check if webservice is up with curl
If there a curl parame
That will check the headers via wget 2>&1pipes the stderr to stdout grep filters -O /dev/null just throws the content of the page
2>&1
grep
-O /dev/null
if [ "\`wget http://example.org/ -O /dev/null -S --quiet 2>&1 | grep '200 OK'\`" != "" ]; then echo Hello; fi;
I know not curl, but still a solution