#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2001
    Posts
    2
    Rep Power
    0

    ftp script wint perl ?


    Hello,

    I need every hour to download a file (in ascci mode) from a ftp server and I'm wondering How can i do this with perl? Any example script ?

    Greetings,
    Chema
  2. #2
  3. No Profile Picture
    PHP/PERL/.NET Coder
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2001
    Location
    Daytona Beach, Florida
    Posts
    36
    Rep Power
    14
    What I would do is follows:

    First make a cron job to run a perl script once an hour (if the host of the machine your running this on allows it)

    Then write a perl script that uses the Net::FTP module..you can find documentation for this module below:

    http://www.perldoc.com/perl5.6/lib/Net/FTP.html

    Then do whatever you need to do with the file and that should do it!

    Hope this helps!

IMN logo majestic logo threadwatch logo seochat tools logo