This is the bash code:

ftp -n <ftpadress> <<EOT
put $pathfile$reportfile $remotepath$reportfile
put $pathfile$logfile $remotepathlog$logfile

This is the output:

a <files_to_add> 
put <files_to_add_with_path> <files_to_add_with_remote_path> 
The parameter is incorrect.  

I checked the arguments of the put command and they are correct. Finally I check in the FTP and is not there

I have two questions:

  1. Why is not transferred?
  2. What does the "The parameter is incorrect" mean?

IMPORTANT NOTE: The file to be uploaded to the FTP contained the colon in the file name

  • 1
    Does any of the involved filesystems not like : in filenames maybe? Are you transferring the files to a Windows system? – Kusalananda Jun 11 '19 at 15:52
  • 1
    The history is no longer visible. There's o longer any need to delete. – terdon Jun 14 '19 at 11:07

As @Kusalanada suggested, Windows did not like the symbol ":"

I changed the name of the file, from



| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.