Time conflict using utime

2002-02-12 Thread Student of Perl
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

time setting for local and remote files

2002-02-12 Thread Student of Perl
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

checking updated copy of file on remote ftp

2002-02-08 Thread Student of Perl
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

Illegal character error for blank line.

2002-02-06 Thread Student of Perl
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 ..

copy files

2002-02-05 Thread Student of Perl
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]