Hi,
I am looking for a script that would:
run once a day using cron
fetch a text file
save the text file on my server
append the date to the filename so multiple days may be saved in the same directory without overwritting previous files
I currently have two files that I would like to save, but don't want to be at the computer to manually save them. The files are:
http://water.gp.usbr.gov/...ydromet_archives?CCR
http://water.gp.usbr.gov/...ydromet_dayfiles?ccr
I need to fetch and save the first file between 6:00-7:15 AM and the second file between 11:30-11:59 PM on a daily basis. It would be OK if there were variables in the script that could set the URL and filename and run under cron as something like fetch1 and fetch2.
This is not a fetch and display content operation, so the files don't need to be publicly viewable. Likewise, it would be OK if they were and it would make reviewing them with a browser simple.
I have looked around hotscripts.com and haven't found what I was looking for. Might be searching for the wrong term. The scripts I found so far allow users to upload files to my site or take content from another site and display it on my site.
Any thoughts or suggestions would be welcome.
--
Rob
SW Montana's Online Community
Modular Model Railroading
I am looking for a script that would:
run once a day using cron
fetch a text file
save the text file on my server
append the date to the filename so multiple days may be saved in the same directory without overwritting previous files
I currently have two files that I would like to save, but don't want to be at the computer to manually save them. The files are:
http://water.gp.usbr.gov/...ydromet_archives?CCR
http://water.gp.usbr.gov/...ydromet_dayfiles?ccr
I need to fetch and save the first file between 6:00-7:15 AM and the second file between 11:30-11:59 PM on a daily basis. It would be OK if there were variables in the script that could set the URL and filename and run under cron as something like fetch1 and fetch2.
This is not a fetch and display content operation, so the files don't need to be publicly viewable. Likewise, it would be OK if they were and it would make reviewing them with a browser simple.
I have looked around hotscripts.com and haven't found what I was looking for. Might be searching for the wrong term. The scripts I found so far allow users to upload files to my site or take content from another site and display it on my site.
Any thoughts or suggestions would be welcome.
--
Rob
SW Montana's Online Community
Modular Model Railroading