By aarts
i want to upload two different files in to two different directories(path) on ftp server.but i am able to ftping only one at a time :(.. not both simultaneously.
here i have connectd the ftp and use the binary mode to transfer the files
here i have connectd the ftp and use the binary mode to transfer the files
Code:
$ftp = Net::FTP->new($ftphost, Debug => 0)
or die "Cannot connect to $ftphost $@";
$ftp->login($ftpuser, $ftppassword)
or die "Cannot login ", $ftp->message;
$ftp->binary;
# Full Path on FTP
$ftp->cwd($fullpath);
print "Ftp Path : $fullpathnn";
$ftp->put("$filename");
$ftp->cwd($fullftp)or die "Cannot change working directory ", $ftp->message;
$ftp->put($filename2) or die $ftp->message;
}
would be highly thankful if anyone can help me out.
Regards,
…read more
Source: FULL ARTICLE at The UNIX and Linux Forums