#!/usr/local/cpanel/3rdparty/bin/perl
use Net::FTP;
my (%ARGS) = parseargv();
if ( $ARGS{user} eq "" ) {
die "Sorry, you must specify a user to login to the remote server as.";
}
if ( $ARGS{host} eq "" ) {
die "Sorry, you must specify a remote server.";
}
if ( $ARGS{srcfile} eq "" ) {
die "Sorry you must specify a source file.\n";
}
if ( $ARGS{destfile} eq "" ) {
die "Sorry you must specify a destfile file.\n";
}
if ( $ARGS{port} eq "22" ) {
print "Assuming port 21 since 22 was specified!\n";
$ARGS{port} = 21;
}
my $pass =