Need shell script for ftpying multiple files

October 26, 2010 at 02:05:59
Specs: Windows XP
Hi All,

I am a beginner for shell programming. I have a requirement to ftp multiple files. Here are the details.

I have around thiry files in one directory, I want a shell script which selects 5 files at a time and does ftp them to another host . After the transfer for first files is complete the script should select the files from 5to10 and do the FTP this is how script should ftp all the files.

Could some body help me how could this be done using shell script.

Thanks in advance for your help!

Regards,
Srikanth


See More: Need shell script for ftpying multiple files

Report •

#1
October 26, 2010 at 03:14:10
Might want to look at this solution:

http://www.unix.com/shell-programmi...

The only change you will need to make is to create a pick list of all the files in the directory. You can then loop and feed them 5 files at a time using a counter in your script.


Report •
Related Solutions


Ask Question