Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's very frustrating to see something like this that claims to be very useful, but shows no examples on the page.

>Expect is a tool for automating interactive applications such as telnet, ftp, passwd, fsck, rlogin, tip, etc. Expect really makes this stuff trivial.

How?

>Expect can make easy all sorts of tasks that are prohibitively difficult with anything else. You will find that Expect is an absolutely invaluable tool - using it, you will be able to automate tasks that you've never even thought of before - and you'll be able to do this automation quickly and easily.

HOW?

Ah, examples... >http://expect.sourceforge.net/#examples

It's just a giant README. This is frustrating.



Here's an example: https://github.com/nfriedly/Meteor-ODB-II/blob/master/deploy...

This script runs the meteor deploy command as part of my CI loop every time new code gets pushed to github. The deploy command expects me to type in a bunch of information, and expect does that for me.


There are nice examples on wikipedia: http://en.wikipedia.org/wiki/Expect.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: