It is a secure layout I ensure you
manually that is done like so.
ftp ftp.otherserver.xxx
ls
150 Opening data connection for mailbox contents.
-rw-rw-rw- 1 owner group 1062 Mar 31 15:09 F3882692
-rw-rw-rw- 1 owner group 306 Mar 31 15:09 F3882695
-rw-rw-rw- 1 owner group 1101 Mar 31 15:09 F3882696
-rw-rw-rw- 1 owner group 1101 Mar 31 15:09 F3882697
-rw-rw-rw- 1 owner group 718 Mar 31 15:09 F3882693
-rw-rw-rw- 1 owner group 1510 Mar 31 15:09 F3882694
-rw-rw-rw- 1 owner group 632 Mar 31 15:09 F3882690
-rw-rw-rw- 1 owner group 1914 Mar 31 15:09 F3882691
get /bundle/any/flatfile.DUL/20080409000000/20080409235959/DUL_080409.txt DUL_080409.txt
get /bundle/any/flatfile.BEO/20080409000000/20080409235959/BEO_080409.txt BEO_080409.txt
This will do what I need todo manually but we are talking a daily thing with about 10 files with different ending beside DUL BEO etc..
the format in the request 20080409235959 is year 2008 month 04 day 09 hour 23 minutes 59 seconds 59
The file format is YYMMDD.txt
Need to consider FTP time and messages like
550 No such file or directory
226 transfer complete
421 Timeout
need to run it for that day date and some how also be able to check to see if the files have run in the past couples of days and download the files.