Or you could use the `command` thingy to check the output like below with `curl`.