Every day at some random time two files are placed in a AS/400 library. I have a cron set every 15 mins to run the ftp process to get the files. Using AIX 4.3.3.10.
Is there a way to make the FTP process smarter to check to see if the files exist before running thru the entire process?
Script is basic ftp:
user password
cd QGPL
lcd /usr/apps/data
prompt off
bin
get JWF*
rename JWF940 JJJ940
rename JWF950 JJJ950
quit
Any help would be appreciated.
Is there a way to make the FTP process smarter to check to see if the files exist before running thru the entire process?
Script is basic ftp:
user password
cd QGPL
lcd /usr/apps/data
prompt off
bin
get JWF*
rename JWF940 JJJ940
rename JWF950 JJJ950
quit
Any help would be appreciated.