I have an ftp script that reads a control file with a list of file types (based on naming convention) to transfer. It will search for all files named according to the first type in the control file, then the second, etc. This runs throughout the day and moves files to/from an ftp server. However, while one set of files is being moved, it will not go to the next file type, causing slower results. I would like to make it so it will ftp files in parallel instead of waiting for the previous process to finish. The main FTP loop looks something like this:
exec < ${control_file}
IFS=:
while read mode type file ldir rdir
do
check for new files to send
while f=$(line)
do
FTP the files
check for completion
done < ${ftp_list}
done
Any help would be appreciated.
exec < ${control_file}
IFS=:
while read mode type file ldir rdir
do
check for new files to send
while f=$(line)
do
FTP the files
check for completion
done < ${ftp_list}
done
Any help would be appreciated.