I need to curl/wget a page and make sure it returned a particular value (else return 1), something like this:
curl http://example.com/something/run | grep -e '^success!$' || return 1
Which flags should I use in curl or wget? It's not working.
You need to suppress the error output from
You can then proceed as usual.