LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Send keystrokes in console mode (http://www.linuxquestions.org/questions/linux-general-1/send-keystrokes-in-console-mode-75577/)

Reginald0 07-24-2003 03: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 03:33 PM

Take a look at "expect":
man expect

Reginald0 08-27-2003 08: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.

Reginald0


All times are GMT -5. The time now is 08:40 AM.