I have a wget command that I want to execute from a jsp page: "wget localhost:8080/myApp -q -O -"
I tried running the command from jsp using this method but it didn't work:
Then I tried using this method I found:
I would like to get the contents of a given page. In the big picture, what I want to accomplish is that I have a cluster of https servers under a dns and I want to monitor if a given server is functioning by finding a string from the wget response. So the jsp page will be running from each server and I'll have a fail/pass response from each jsp page that will be used to monitor.