LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   wget to access web resource but not download it (https://www.linuxquestions.org/questions/linux-newbie-8/wget-to-access-web-resource-but-not-download-it-892101/)

veeruk101 07-16-2011 07:08 PM

wget to access web resource but not download it
 
Is there a way for wget not to download a file but rather just access it? I use it to access a URL that triggers a process on a web server, but the actual HTML file at that location doesn't need to be downloaded and saved. I couldn't find anything in wget's help to show if there's a way to do this. Could anyone suggest a way of doing this? Thanks.

theNbomr 07-16-2011 07:44 PM

How about
Code:

wget -o /dev/null http://www.some.url
--- rod.

arizonagroovejet 07-17-2011 04:51 AM

FWIW my first thought was that I'd do this with curl.
Code:

curl -s  http://whatever > /dev/null
I can't think of any reason to use curl over wget though. What theNbomr suggested seems like a perfectly good solution.


All times are GMT -5. The time now is 01:32 PM.