On Mon, 2005-12-05 at 12:07 +0530, Yashpal Nagar wrote:
> 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)

'expect' works very well for automating interactive sessions like ftp,
telnet etc.  The package comes with example scripts for ftp, telnet etc.
that can give you a quick start to what you wish to accomplish.
-- 
Arun Khan
Linux is like a wigwam - no gates, no windows, apache inside



-------------------------------------------------------
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
linux-india-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to