Results 1 to 4 of 4

Thread: Programing with Expect

  1. #1
    Join Date
    Nov 2008
    Location
    Maine
    Beans
    1,125
    Distro
    Ubuntu 10.04 Lucid Lynx

    Question Programing with Expect

    Hi all,
    I'm trying to Use Expect to automate a curl function. basically I don't want to type enter for my script to run. Can anyone point me to a good Expect tutorial?
    ~Conradin~

  2. #2
    Join Date
    Nov 2008
    Location
    Maine
    Beans
    1,125
    Distro
    Ubuntu 10.04 Lucid Lynx

    Lightbulb Re: Programing with Expect

    I broke down and bought the book "exploring Expect" published by O'Rielly, by Don Libes. I'm just starting Chapter 2 and feel much better about this whole thing already.
    ~Conradin~

  3. #3
    Join Date
    Mar 2009
    Location
    Chicago, IL, USA
    Beans
    31
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Programing with Expect

    How did you like it? I've got an idea to create some Expect scripts that would log into some routers and run some show commands, save the output to a text file, then use Python to trim the text file into a pruned version that was useful for troubleshooting some specific problems quickly.

  4. #4
    Join Date
    Nov 2008
    Location
    Maine
    Beans
    1,125
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Programing with Expect

    "Exploring Expect" was a good book to get me started, and it reads OK, Don Libes is a decent writer.

    For a while, I was programming VMD which is in TCL, the same language that Expect is based on. I found the Book "Practical Programming in TCL and TK"
    Third edition to be very helpful, despite, not being explicitly about Expect.
    ~Conradin~

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •