Have a problem here where I'm connecting from a Linux machine to a Windows machine and the FTP unexpectedly exits after a mdel command. It doesn't even attempt the next command. I'm using KSH, FTPing a number of files that start with the job name and have a unique identifier after it (not necessarily in numerical order). Should be pretty simple.
The mdel works perfectly but then quits. Below are the last two lines of the log file:
mdel job1_comp1.txt? 250 DELE command successful.
mdel job1_comp8.txt? 250 DELE command successful.
221 Goodbye.
From what the log is showing, I don't think it even attempts to run the lcd. When I rerun the job, it successfully FTP's the number of files expected. Has anyone seen this behavior before? I have a kludge workaround where I break up the mdel and mput into their own FTP sessions but from what I've seen in samples and other forums, my code should work.
Thanks
Code:
ftp -n -v $FtpSvr <<++DEL++ > $logPath/job1_FTPa.log
user $FtpUsr $FtpPsw
mdel job1_comp*
lcd $dest
!sleep 5
mput job1_comp*
++DEL++
The mdel works perfectly but then quits. Below are the last two lines of the log file:
mdel job1_comp1.txt? 250 DELE command successful.
mdel job1_comp8.txt? 250 DELE command successful.
221 Goodbye.
From what the log is showing, I don't think it even attempts to run the lcd. When I rerun the job, it successfully FTP's the number of files expected. Has anyone seen this behavior before? I have a kludge workaround where I break up the mdel and mput into their own FTP sessions but from what I've seen in samples and other forums, my code should work.
Thanks