|
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
|