I have used Net::FTP for ftp coding
in my script.
my problem is related to file modification
time. I use
$remote_date=$ftp->mdtm($remote_file);
#get remote_file to local disk
$ftp->get($remote_file);
#and then set its date to that of remote file's date
utime $remote_date,$remote_date,$remot
use Net::FTP;
use constant HOST=>'ftp.somexample.com';
$ftp=Net::FTP->new(HOST) or die "connection error";
$ftp->login('anonymous') or die $ftp->message;
$ftp->binary or die $ftp->message;
$ftp->get("sample.txt") or die $ftp->message;
$ftp->quit();
I have the above script created.The site and f
hi
i want a suggession for my Perl code.
i am coding a Perl script that downloads
updated copies of files from a ftp site ;
For the first time it will download all the
files. And for every next execution of this
script it will check the local copies of
the files with corresponding remote files
Hi there,
i have very strange problem.
I have a simple script which I run
on Windows98 (PC) and it
executed properly. But when I
sent it to someboday by email
who uses Unix ; it give error.
The first 3 lines of the script are
comments in following format.
# comment1
# comment2
# comment3 ..
Hello
whats the simple function to copy
files? pls tell the syntax.
-Jim
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]