Live Scores
Shareware
Movie Stars
Programming
Multimedia
Mobile
Database
Enterprise
in
CGI
Web Development
(Entire Site)
Questions and answers to issues related to Software: Business, Database, Firewalls, Office, Graphics, Security, System, Server.
»
Web Development
»
Scripting
»
CGI
»
How to FTP an entire directory via Perl?
How to FTP an entire directory via Perl?
In my Perl script, I use:
$ftp->get("$remote_file","
$local_fil
e");
But this is only for one file. Is there a way to copy an entire directory? mget didn't work in the script.
Solution: How to FTP an entire directory via Perl?
You don't need to recompile Perl to install a module.
bash$: perl -MCPAN -e shell
Once you're in (and have done the basic config for the CPAN Shell)
cpan> i /Recursive/
If it's found, just install "Net::
FTP::Recursive
" (It's been a while since I've compiled modules for *nix systems, it might be "Net-FTP-Recursive")
Doing so will build and install the module, but your Perl install won't be recompiled or anything. Recursive depends on Libnet aswell.
Popular Tags
Tags:
apache
array
bash
CGI
convert
date
decrypt
error
file
form
format
formmail
get
headers
html
htpasswd
IIS
microsoft
mysql
number
perl
php
post
premature
redirect
script
textarea
upload
using
Browse All Tags