Forum Moderators: bakedjake

Message Too Old, No Replies

Send keystrokes in console mode

Send keystrokes in console mode

         

Reginald0

5:39 pm on Jul 24, 2003 (gmt 0)

10+ Year Member



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 :)

Reginald0

12:30 pm on Aug 27, 2003 (gmt 0)

10+ Year Member



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.

Reginald0

martin

2:48 pm on Sep 2, 2003 (gmt 0)

10+ Year Member



Hm, never heard of this program before. Thanks for pointing it out. I always used echo foo ¦ program_that_expects_you_to_enter_foo.