View Single Post
Old 01-11-2007, 12:21 AM  
marketsmart
HOMICIDAL TROLL KILLER
 
Industry Role:
Join Date: Dec 2004
Location: Sunnybrook Institution for the Criminally Insane
Posts: 20,419
Script Help Please

I am trying to grab a file and have it write to a text file using a cron job. I want each file grab to overwrite the previous one. please tell me if this script is correct...

#!/bin/sh
#start
cd /var/www/html/domain.com
wget --quiet -O /var/www/html/domain.com/file.txt 'http://www.other_domain.com/file.php?username=******&password=**********'
cat /var/www/html/domain.com/file_1.txt >> /var/www/html/domain.com/file_2.txt
#end
marketsmart is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote