On Tue, May 07, 2002, Eliran wrote about "Re: Expect Programmers": > Anyway I try to set up an Expect script that interact with ftp > so it will automatically login into my ftp server, the basic problem is...
A much simpler solution (if it fits your problem) would be to use a program like wget or curl to automate the connection to the ftp server. They are available on all decent Linux installations, and you can do things like wget ftp://my.server.com/file/name Another alternative is to automate ftp via a ~/.netrc file (see the netrc(5) manual, and the ftp(1) manual). Exect is a very useful tool, but its anything but easy to learn. You'd need to learn TCL (the language on which expect is built) and then the expect commands. See www.tcl.tk for some tcl and expect documents and stuff. -- Nadav Har'El | Tuesday, May 7 2002, 26 Iyyar 5762 [EMAIL PROTECTED] |----------------------------------------- Phone: +972-53-245868, ICQ 13349191 |If glory comes after death, I'm not in a http://nadav.harel.org.il |hurry. (Latin proverb) ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]