What port is being used for data? The standard port for ftp is 21, with data running on port 20. ![]() I see port 2121 is being used for FTP commands. The file names contain spaces and the symbol.The files are PDFs and are anywhere fro 30-60 MB in size.When I upload the file by hand, via the CLI using the same ftp client the script uses, it uploads without issue. All other script functions work without issue. When I run the script manually, the same behavior. ![]() When the script runs via incron, it moves the file and appends the date as expected (the file is intact and not corrupt), and emails out that the file has been uploaded, but when it FTPs the file it's only 0 bytes. ![]() Mv $arcLoc/ " $2 " $arcLoc/ " $fileName "įtp -n 2121 ' $notifyRecipient << EOF The following file has been uploaded to the FTP server: $fileName Please contact us if there are any issues. BASH #!/bin/bash if ] then arcLoc = "/home/archive/file_archive" fileName = $(date +%Y%m%d )- $2 ftpUser = "ftp-user" ftpPW = "ftp-password" notifyRecipient = " $1 " $arcLoc
0 Comments
Leave a Reply. |