the ftp part I can do *I think* (see below) also, it's just figuring out how I can grab a file with a dynmically created name:
ex:
Code: Select all
data-07-12-2006.tar.gzthat file gets created two days before I will run this cron so I need a way to grab the file with the name of two days prior.
I currently have this set up and working using php to generate a file called script.ftp that looks something like this:
Code: Select all
open 88.88.88.88
user administrator
somepassword
lcd c:\mylocalfolder\
get data-07-12-2006.tar.gz
quitCode: Select all
ftp -n -s:script.ftpI'm pretty sure that I should be able to do all of this on one cron (without having to create all of these extra files), but the syntax for figuring out two days ago eludes me (actually the syntax for writing a date eludes me but I didn't want to tell you that).
can anyone please shed some light on this for me?
thx,
Burr