I have a mput command problem. I want to transfer some directories from a server to another server. Normally my script is in crontab, but when I start the cron job with ksh, I see some file transfered, some files aren't. There is a question mark at the end of the files which weren't transferred ( mput corpsmsfe1.log00001_20160916.gz? mput corpsmsfe1.log00001_20160924.gz? ) My prints are below.MY SCRPTS:cd /appdata/weblogic/Oracle/Middleware/user_projects/domains/CorporateSMS/servers/corpsmsfe1/logsmv access.log0* /appdata/weblogic/Oracle/Middleware/user_projects/domains/CorporateSMS/servers/corpsmsfe1/logs/backupcd /appdata/weblogic/Oracle/Middleware/user_projects/domains/CorporateSMS/servers/corpsmsfe1/logs/backupgzip access.log*chmod 777 corpsmsfe1.*.gzftp -ivn * << EOFuser * *promptcd /LOGS/corpsmswebp00/accessbinmput *closebyeEOFcd /appdata/weblogic/Oracle/Middleware/user_projects/domains/CorporateSMS/servers/corpsmsfe1/logs/backuprm *access.log*cd /appdata/weblogic/Oracle/Middleware/user_projects/domains/CorporateSMS/servers/corpsmsfe1/logs/> corpsmsfe1.outcd /appdata/weblogic/Oracle/Middleware/user_projects/domains/CorporateSMS/servers/corpsmsfe1_1/logsmv access.log0* /appdata/weblogic/Oracle/Middleware/user_projects/domains/CorporateSMS/servers/corpsmsfe1_1/logs/backupcd /appdata/weblogic/Oracle/Middleware/user_projects/domains/CorporateSMS/servers/corpsmsfe1_1/logs/backupgzip access.log* chmod 777 corpsmsfe1_1.*.gzftp -ivn * << EOFuser * *promptcd /LOGS/corpsmswebp00/accessbinmput *closebyeEOFcd /appdata/weblogic/Oracle/Middleware/user_projects/domains/CorporateSMS/servers/corpsmsfe1_1/logs/backuprm *access.log*cd /appdata/weblogic/Oracle/Middleware/user_projects/domains/CorporateSMS/servers/corpsmsfe1_1/logs/> corpsmsfe1_1.outAND KSH PRNT is below:Connected to *220 (vsFTPd 2.0.5)530 Please login with USER and PASS.530 Please login with USER and PASS.KERBEROS_V4 rejected as an authentication type331 Please specify the password.230 Login successful.Interactive mode on.250 Directory successfully changed.200 Switching to Binary mode.mput corpsmsfe1.log00001_20160904.gz? 227 Entering Passive Mode (10,4,38,61,102,120)150 Ok to send data.226 File receive OK.194908 bytes sent in 0.017 seconds (1.1e+04 Kbytes/s)mput corpsmsfe1.log00001_20160909.gz? 227 Entering Passive Mode (10,4,38,61,117,91)150 Ok to send data.226 File receive OK.205323 bytes sent in 0.022 seconds (9.3e+03 Kbytes/s)mput corpsmsfe1.log00001_20160916.gz? mput corpsmsfe1.log00001_20160924.gz? mput corpsmsfe1.log00001_20161004.gz? mput corpsmsfe1.log00001_20161012.gz? mput corpsmsfe1.out00001_20160930.gz? mput corpsmsfe1.out00001_20161005.gz? mput corpsmsfe1.out00002_20160930.gz? mput corpsmsfe1.out00002_20161005.gz? 221 Goodbye.+ cd /appdata/weblogic/Oracle/Middleware/user_projects/domains/CorporateSMS/servers/corpsmsfe1_1/logs/backup+ chmod 777 corpsmsfe1_1.log00001_20160903.gz corpsmsfe1_1.log00001_20160910.gz corpsmsfe1_1.log00001_20160920.gz corpsmsfe1_1.log00001_20160930.gz corpsmsfe1_1.log00001_20161006.gz corpsmsfe1_1.log00001_20161007.gz corpsmsfe1_1.log00001_20161009.gz corpsmsfe1_1.log00001_20161011.gz corpsmsfe1_1.log00001_20161012.gz corpsmsfe1_1.out00001_20161005.gz corpsmsfe1_1.out00002_20161005.gz+ ftp -ivn *+ 0<< \EOFuser ftplog ftpsmslogpromptcd /LOGS/corpsmswebp00/accessbinmput *closebye
Mput command problem
cron;ftp;file transfer