Expect: a perl script that will save us many headaches
Translation of the original in Catalan. Read it in: CatalàCastellano
Well, those of us who live every day with the linux command line sometimes find ourselves with somewhat strange needs. For example: I need to make a script that does an ftp with the good old linux ftp command, but of course, it doesn't support scripts because it has an interactive interface, which waits for the user to enter the commands in order to work. How do I solve that? well very easy: EXPECT!!!!!
In fact, I have known the little program for many years, but I always lose sight of it and then I spend like 10min finding it again. So here goes the article so as not to lose sight of it again. If I manage to download the book O'Reilly has made about the little program I will post it. For now, let's make do with the manuals on the website and with the biggest library in the world: "google".