Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-16-2011, 08:08 PM   #1
Registered: Mar 2005
Distribution: Ubuntu 12.04 LTS
Posts: 249

Rep: Reputation: 16
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.
Old 07-16-2011, 08:44 PM   #2
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,398
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
How about
wget -o /dev/null http://www.some.url
--- rod.
Old 07-17-2011, 05:51 AM   #3
Senior Member
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,093

Rep: Reputation: 197Reputation: 197
FWIW my first thought was that I'd do this with curl.
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I use wget and grep to download and scan web pages for a search string? diondeville Programming 14 05-27-2010 01:02 PM
wget, web crawler, web spider and web archiving beckettisdogg Linux - Newbie 1 08-16-2009 08:27 AM
wget and links2 can't access web page. fakie_flip Programming 6 01-11-2008 05:34 PM
How to download web pages from a website using wget command Fond_of_Opensource Linux - Newbie 5 07-05-2006 10:50 AM
download resource from terminal ty263 Red Hat 2 09-28-2004 08:05 AM > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration