in reply to Writing to a program

At the risk of having a thousand flame throwers turned on me, you could also look at a language called expect. It was written with 'pretending to be a human at the keyboard' in mind. For short little tasks like this, it does pretty well.

/\/\averick

Replies are listed 'Best First'.
RE: Re: Writing to a program
by davorg (Chancellor) on Aug 02, 2000 at 12:08 UTC

    <pedant>Actually Expect isn't a language at all, but an extension to Tcl (so best not go there!) But there's an Expect.pm on the CPAN which allows you to do all the same things from Perl.</pedant>

    --
    <http://www.dave.org.uk>

    European Perl Conference - Sept 22/24 2000, ICA, London
    <http://www.yapc.org/Europe/>
      ya, you're right. I complete forgot about that. Just goes to show how often I use it :)

      /\/\averick