Hi Linux-Users! I am writing a script for automating a ftp session. It is working for a single file using kermit as the helping agent.
What i want now is to pass the names of set of files to kermit to be fetched from ftp-server. I mean how can i use shell script to pass such file names to kermit? (for i in `cat files-name` type) Script is : ############ #!/usr/bin/kermit + if < \v(argc) 3 exit 1 Usage: \%0 hostname user passwd ftp open \%1 /user:\%2 /password:\%3 if fail exit 1 Connection failed if not \v(ftp_loggedin) exit 1 Login failed ftp cd ppi if fail exit 1 ftp cd ppi: \v(ftp_message) lcd ~/ppi if fail exit 1 cd ~/ppi: \v(errstring) ftp get /binary ACCOUNTS.ctl if fail exit 1 ftp get ACCOUNTS.ctl: \v(ftp_message) ftp bye exit ############### Above can pick the ACCOUNTS.ctl without any problem. Now i want to have a file containing all files name to be fetched from the ftp server via kermit. CONDITION: I am not supposed to do a rsync with a ssh public key,password-less authentication. Regards, Yashpal ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ linux-india-help mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-india-help
