LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   wget isn't what I want. But what is it that I should use? (https://www.linuxquestions.org/questions/linux-newbie-8/wget-isnt-what-i-want-but-what-is-it-that-i-should-use-403414/)

ericbrian 01-14-2006 05:58 PM

wget isn't what I want. But what is it that I should use?
 
I need to create a cronjob. This cronjob should load a webpage and capture the stream. Regardless of the results, that result should go to trash.

Right now I have in the cronjob command:
wget http://the.domain/my/path/to.file.php 2>/dev/null >/dev/null

This, however, creates a 0 size file on my server called to.file.php.

Of course, it is doing what I asked it to do. What should I do so that no file is created? Or rather, what command?

Thanks.

Eric

saman007uk 01-14-2006 07:11 PM

Code:

wget -O /dev/null http://the.domain/my/path/to.file.php 2>/dev/null >/dev/null

ericbrian 04-19-2006 01:12 PM

Thank you! :)


All times are GMT -5. The time now is 07:50 AM.