open a URL from shell
I'm looking to open a URL and then dump any and all output including errors to /dev/null
What I was planning to do was run lynx ***.***.***.***/page.html >/dev/null 2> /dev/null
However I find this gives a segmentation fault.
I dont want to run it and place it in the background either as it will still remain at that page and obviously lynx will remains running. Perhaps if there is a way of killing the instance of lynx after it has performed the above task, from within my script ofcourse???
Any suggestions?
Basically, this is to reboot my router from my server, I do a few checks, if I can't ping the outside world, then I run this to reboot it.
Thanks in advance...
|