blob: e6a3369a498b9de7d3de216898fc1e0b78005900 [file] [log] [blame]
rjw6c1fd8f2022-11-30 14:33:01 +08001use Net::FTP;
2$ftp = Net::FTP->new("10.15.10.34", Debug => 0) or die "Cannot connect to RD3 ftp: $@";
3$ftp->login("rd3build",'xu06z8dkrd3') or die "Cannot login ", $ftp->message;
4$ftp->binary or die "Can not change to binarry mode\n";
5if(!-e $ARGV[0]){
6 die "Can not find file:".$ARGV[0]."\n";
7}
8$ftp->put("$ARGV[0]") or die "Upload failed ", $ftp->message;
9$ftp->quit;
10
11exit 0;