Subject: Re: scripting hitting a key
To: Mipam <mipam@ux11.ltcm.net>
From: Amadeus Stevenson <amadeus.stevenson@gmail.com>
List: netbsd-help
Date: 05/02/2006 12:41:44
You might try sending a carriage return \r or \r\n, or more concretely
you could take a look at `expect` (/usr/pkgsrc/lang/tcl-expect) which
provides a method to script with interactive programs.

HTH

Amadeus

On 5/2/06, Mipam <mipam@ux11.ltcm.net> wrote:
> Hi All,
>
> Maybe a little off topic, but i'll give it a try.
> When you start some programs, they'll require you to hit the "ENTER"
> button for example or any other key.
> This isn't nice if you try to script and use this command.
> Is there a way to script hitting the "ENTER" or any other key so that
> that program can be run automatically using the script?
> Regards,
>
> Mipam.
>