Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FTP if file exist?

Status
Not open for further replies.

sinyce

IS-IT--Management
May 27, 2002
57
US
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top