The Cache: Technology Expert's Forum
 
*
Welcome, Guest. Please login or register. September 23, 2019, 02:18:39 AM

Login with username, password and session length


Pages: [1]
  Print  
Author Topic: Cron/WGET/ creating empty files  (Read 3145 times)
deregular
Expert
****
Offline Offline

Posts: 172


View Profile
« on: March 09, 2010, 11:06:59 PM »

Ok so due to limitations with what I am doing, I need to run a wget on a url.

But for some reason when I enter the cron line, every time it runs it creates a sequential file above my http_doc...

Here is my cron

wget http://www.domain.com/newsletter/cron_newsletter/ -q -O /dev/null

It is creating these types of files...
index.html
index.html.1
index.html.2
index.html.3
index.html.4

Ive tried to use the quiet and output switches but it is still doing it.

Hosting is hostgator btw.

Anyone have any ideas how I can stop it from creating these sequential files?

Logged
perkiset
Olde World Hacker
Administrator
Lifer
*****
Offline Offline

Posts: 10096



View Profile
« Reply #1 on: March 10, 2010, 10:05:43 AM »

When you pull a URL down twice, the default behavior is to name the second one .1 and the third .2 etc ... I'll bet if you erased the original every time you'd not see the dotted # suffixes anymore.
Logged

It is now believed, that after having lived in one compound with 3 wives and never leaving the house for 5 years, Bin Laden called the U.S. Navy Seals himself.
deregular
Expert
****
Offline Offline

Posts: 172


View Profile
« Reply #2 on: March 10, 2010, 05:42:25 PM »

Yeah i could do that, but that would be a work around.

I dont want it to even produce the first index.html, as it is not supposed to be there.
Logged
Pages: [1]
  Print  
 
Jump to:  

Perkiset's Place Home   Best of The Cache   phpMyIDE: MySQL Stored Procedures, Functions & Triggers
Politics @ Perkiset's   Pinkhat's Perspective   
cache
mart
coder
programmers
ajax
php
javascript
Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS!