04-26-2005
78,
0
Join Date: Nov 2002
Last Activity: 20 November 2008, 5:43 PM EST
Location: Raleigh, N.C.
Posts: 78
Thanks Given: 0
Thanked 0 Times in 0 Posts
Not the usual ftp script question
I have an order file that gets updated periodically on a ftp server.
The file format is "number one-day of the quarter-file number". For example,
the format would look like this for today and would increment as such.
1-26-1
1-26-2
1-26-3
etc
After I grab each oder file, I will rename it 1-26-1.done, 1-26-2.done, 1-26-3.done, and so on.
My qusetion is how to grab an order file, rename it to done, then when the script runs again, pull the next sequential file without touching the done file.
Also, if there are multiple new order files, how can I grab multiple files and rename them during one interactive ftp session.
Any help would be greatly appreciated.