Hi All,
I have posted this issue in the forum, but i did not get any answer. If someone knows about it, could you please let me know hoiw to do it?
i am FTP the file from one server to another. The code in FTP should first check the indicator file is available or not? For example, for the data file IN_EMP_DEPT.txt, the indicator file will be IN_EMP_DEPT.ind. If indicator file is available, it should start copying data file from remote server to local server. If not, it should wait for 5 minute and then again check for indicator.
Below is my code, which i am suing to FTP the file.
ftp -nvi $HOST <<"EOT" >> $LOG
quote user abc
quote pass abc
prompt
cd /XXX
lcd /common/CCC
mget IN_EMP_DEPT.txt
bye
EOT