My initial testing on my PC was good. Compiled the perl program,
it ran and didn't require any packet drivers. If this works on the other
server, that will be great.
It couldn't be easier than the perl program...
use Net::FTP;
$ftp = Net::FTP->new("servername", Debug => 0) or die "Cannot connecet to
servername: $@";
$ftp->login("username","password") or die "Cannot Login ", $ftp->message;
$ftp->cwd("/directory") or die "Cannot change working directory ",
$ftp->message;
$ftp->get("filename") or die "get failed ", $ftp->message;
$ftp->quit;
I can embed the username/password into the program, encrypted and use
an md5 decryption from within perl - this way, the ftp server info isn't
viewable if you edit the .exe code, and also I can factor in command line
options to supply the username/password for different servers and not have
to put that in the file that will be written out.
The downside is the length of the program (1.5mb) but that's a very minor
downside.
George
> -----Original Message-----
> From: [email protected] [mailto:u2-users-
> [email protected]] On Behalf Of George Gallen
> Sent: Friday, September 03, 2010 9:42 AM
> To: U2 Users List
> Subject: Re: [U2] running ftp from UV (Windows)
>
>
> My next try will be to compile a PERL program with the Net::FTP module,
> This should
> keep compatibility between unix and windows fairly clean as well. I
> don't think
> that module requires an additional packet driver to be installed, but I
> guess I'll
> find out.
>
> George
>
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users