LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 01-14-2006, 05:58 PM   #1
ericbrian
LQ Newbie
 
Registered: Jan 2006
Posts: 2

Rep: Reputation: 0
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
 
Old 01-14-2006, 07:11 PM   #2
saman007uk
Member
 
Registered: Dec 2003
Location: ~root
Distribution: Debian
Posts: 364

Rep: Reputation: 33
Code:
wget -O /dev/null http://the.domain/my/path/to.file.php 2>/dev/null >/dev/null
 
Old 04-19-2006, 01:12 PM   #3
ericbrian
LQ Newbie
 
Registered: Jan 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you!
 
  


Reply



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
wget help rino.caldelli Linux - Software 4 01-08-2006 03:47 PM
wget noir911 Linux - Newbie 8 07-30-2005 08:57 AM
wget noir911 Linux - General 1 06-12-2005 02:10 AM
using wget bucovaina78 Linux - Software 3 03-28-2005 07:02 AM
wget know how ksd Slackware 16 10-19-2003 07:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:21 AM.

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