Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 07-24-2003, 02:17 PM   #1
LQ Newbie
Registered: Dec 2002
Location: Brazil
Posts: 26

Rep: Reputation: 15
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
Old 07-24-2003, 02:33 PM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Take a look at "expect":
man expect
Old 08-27-2003, 07:46 AM   #3
LQ Newbie
Registered: Dec 2002
Location: Brazil
Posts: 26

Original Poster
Rep: Reputation: 15
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.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Send message over console stefaandk Linux - Newbie 4 08-15-2005 07:48 PM
Mandrake 9.2's boot process entirely done in console mode before loading in X mode... mishmash Mandriva 6 02-17-2004 09:19 PM
How to send message to other user(online) on the text mode of Linux ??? owen Linux - General 2 01-10-2004 01:20 PM
console mode ? johnyy Linux - Software 1 12-30-2003 09:36 AM
console mode vapor Linux - Distributions 1 07-13-2003 09:42 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:38 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration