johntoh
Hi,
I'm writing a script that will ftp a file from one server to another.
At the moment I only have access to one ftp server to test out the script so I'm trying to ftp a file from one folder to another folder in the same directory.
I have the following:
ftp -vin $LOGFILE
open $ftp_SERVER
user $ftp_USER $ftp_PASS
cd $ftp_EFTFROM
lcd $ftp_EFTTO
prompt
$ftp_MODE
mput *
quit
I get the following error:
mput *? Illegal operation. Use the COPY command
Is it not possible to do this??
I'm writing a script that will ftp a file from one server to another.
At the moment I only have access to one ftp server to test out the script so I'm trying to ftp a file from one folder to another folder in the same directory.
I have the following:
ftp -vin $LOGFILE
open $ftp_SERVER
user $ftp_USER $ftp_PASS
cd $ftp_EFTFROM
lcd $ftp_EFTTO
prompt
$ftp_MODE
mput *
quit
I get the following error:
mput *? Illegal operation. Use the COPY command
Is it not possible to do this??