On Wed, May 08, 2002 at 06:39:02PM +0300, Nadav Har'El wrote: > On Wed, May 08, 2002, Ehud Karni wrote about "Re: Expect Programmers": > > On Wed, 8 May 2002 01:11:15 +0300, Nadav Har'El <[EMAIL PROTECTED]> wrote: > > > About 10 years ago, before easy-to-use tools like wget existed, I wrote > > > a shell script called "nftp" to automate the use of ftp. .... > > I'm using `ftp' in scripts for at least 10 years. The `ftp' does not > > use /dev/tty (unlike `telnet') so it can be used with normal piping. > >... > > Yes, this is a good approach too. > The reason I used ~/.netrc tricks rather than piping is that I wanted > in many cases that the user to be able to normally type in commands to ftp > after it finished the canned commands (login, binary/prompt/hash, cd, and > so on). You can see my nftp README for more about the rationale behind how > it worked (and remember, it's 10 years old, so don't criticize it for being > not very useful today). > > I think that is what Eliran was also trying to do with expect, as he added > an "interact" command at the end of the script (which causes expect to > open a pty and transfer control of the application to the user).
Yes that what I did (check the expect manual for information on interact) > > -- > Nadav Har'El | Wednesday, May 8 2002, 27 Iyyar 5762 > [EMAIL PROTECTED] |----------------------------------------- > Phone: +972-53-245868, ICQ 13349191 |"God is dead." - Nietzsche; "Nietzsche is > http://nadav.harel.org.il |dead" - God > > ================================================================= > 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] > > -- <a href="http://eg-site.tripod.com">Eliran</a> I replaced the headlights on my car with strobe lights. Now it looks like I'm the only one moving. -- Stephen Wright ================================================================= 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]
