Hi,
I have a script that checks for the presence of a flag file on a server using the following code:
If the flag exists the rest of the script runs and downloads a bunch of files. My problem is that I only really want this script to run for a maximum of an hour as if the files are not available within this window they cannot be processed without disrupting users.
Is it possible to set a maximum retry limit on a particular section of the script (i.e. in this case the GOTO: GAD_FLG loop)? I guess I could rename a file incrementally, check for its existence and then exit the loop when it reaches the magic number but it's not a particularly elegant way to do it.
Cheers
John
I have a script that checks for the presence of a flag file on a server using the following code:
FTP Script
Is it possible to set a maximum retry limit on a particular section of the script (i.e. in this case the GOTO: GAD_FLG loop)? I guess I could rename a file incrementally, check for its existence and then exit the loop when it reaches the magic number but it's not a particularly elegant way to do it.
Cheers
John
FTP Script
Thanks for answering wandrey
liked Script FTP? Try our other product Email Parser