Retry on failed attempt?
First off, I admit I'm pretty new/basic to all this so please bare with me.
That being said, I have a fairly simple script that logs into an FTP nightly and uploads a file.
Problem is that I'm occasionally (3–4 a month) seeing an error when trying to transfer
I guess any thoughts/insight into WHY the connection is failing would be appreciated too. If that error points to the FTP server host, I can go back and talk to them as well.
I'd like for some scripting advice that will wait X seconds and retry that file transfer if the above error is hit.
This is my basic script that works 99% of the time.
Any help that can be provided will be more than appreciated!
Thank you in advance
That being said, I have a fairly simple script that logs into an FTP nightly and uploads a file.
Problem is that I'm occasionally (3–4 a month) seeing an error when trying to transfer
< 2023-03-06 01:25:37.651 451 Requested action aborted: internal error in processing. . 2023-03-06 01:25:37.651 Connection failed.
I'd like for some scripting advice that will wait X seconds and retry that file transfer if the above error is hit.
This is my basic script that works 99% of the time.
option batch on option confirm off open XXXXXXXXXXXXXXX -timeout=360 lcd "N:\XXX" cd "\XXXX\XXXXX\" option transfer binary put -nopermissions -nopreservetime *.UPD lcd "E:\XXXXXXXX\downloads" cd "\XXXX\XXXXX\XXXXX\" option transfer binary get -nopermissions -nopreservetime -delete *.txt close exit
Thank you in advance