-   Linux - General (
-   -   Send keystrokes in console mode (

Reginald0 07-24-2003 02:17 PM

Send keystrokes in console mode
Hi, folks!

Is there any way (or application) to send keystrokes to buffer in console mode on Linux, like some programs do in command line mode on Windows? (i.e. sendkey.exe)
I want to automate some tasks that requires user intervention on my Linux systems, and I already tried to search on the net for something like this, but without success.
I would be greatly thankful if some of you show me a solution.

PS: Sorry about my poor english, I'm brazilian :)

david_ross 07-24-2003 02:33 PM

Take a look at "expect":
man expect

Reginald0 08-27-2003 07:46 AM

It's me again.

I finally decided to learn more about a program called "expect" that comes with the Red Hat CD-ROM and it does what I want. Moreover it's pretty easy to use.

Thanks a lot to david_ross for his tip.


All times are GMT -5. The time now is 11:39 AM.