Does your system have ssh or scp available? ftp is extremely hard to automate.
Quote:
Originally Posted by
ImranBD
1. I am unable to use delete command to delete data in the ftp location (I have permission to delete).
I don't see your script deleting anything. What are you trying to delete, how do you try to delete it, and in what way does it not work?
Quote:
2. I don't want to download or delete data which are under precessing, file will have .curr extention.
Please explain your script further. I'm not entirely clear on what your first step does. Please show what ends up in your $TEMP_LIST_FILE.
Your second step is a pointless and
dangerous use of backticks.
I also suspect you don't need to run ftp 5,000 times to download 5,000 files.
Why are you putting the second ftp in backticks if you never use the result?
I don't think you need mget to download individual files.
Your here-documents will not work, because the ending EOF must be at the beginning of the line, not indented.