Question : ftp command to copy a file from local to remote machine

What is the ftp command to copy a file from local to remote machine?

Answer : ftp command to copy a file from local to remote machine

Is the file named StaticData.csv, or Static.csv?
What directory is the local file in?
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
$ftp = Net::FTP->new("@ips[$envNum]", Debug => 0)
        or die "Cannot connect to @ips[$envNum]: $@";
 
$ftp->login("user", "user")
        or die "Cannot login ", $ftp->message;
 
$ftp->cwd("/opt/data") or die "Can not cwd ", $ftp->message;
 
$ftp->put("StaticData.csv")
        or die "put failed ", $ftp->message;
 
$ftp->quit;
Open in New Window Select All
Random Solutions  
 
programming4us programming4us