
kind1
Deleted
Feb 28, 2000, 3:08 PM
Post #1 of 2
(310 views)
|
|
How do you FTP in a perl program?
|
Can't Post
|
|
hello..... I was wondering how to ftp a file off of a non-anonymous (meaning username & password protected) with a perl script. Basically, I need the site I am working on to be totally automated. It has to download a zip file of end-of-the-day stock quotes, unzip it, and then import it into a mysql database. I plan on using crontab to call the program at 5:30pm eastern Monday through Friday. Anyway, the only part I don't know how to do is to write a script that will download a file from a non-anonymous ftp. For an example, assume the file is located in pub/download and the file name is a variable since the names are based on what day it is (e.g. US_EQ_000228.zip would be todays file) and the login is "stock" and the password is "market" on port 21. I appreciate any help... if this isn't possible in perl, are there any ideas? kind1
|