I don't suppose the web app is an executable (i.e. not Java)?
If so, you could replace that executable with a script that runs the real one and then emails you. You wouldn't need to poll at all.
Otherwise,
here's something that may work. I thought that some flavors of Unix had equivalent utilities, but I'm not sure.