LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 01-11-2006, 11:32 AM   #1
vineeth789
LQ Newbie
 
Registered: Jan 2006
Posts: 10

Rep: Reputation: 0
how to write to keyboard buffer


hi all
Am makin a tty snooper
but i dont know how to write data to keyboard buffer
so basically what i want is to write each character to keyboard buffer
pls help
 
Old 01-11-2006, 03:30 PM   #2
jim mcnamara
Member
 
Registered: May 2002
Posts: 964

Rep: Reputation: 33
Code:
echo "hello" > /dev/tty
#by character
echo "h\c" > /dev/tty
echo "e\c"> /dev/tty
echo "l\c"> /dev/tty
echo "l\c"> /dev/tty
echo "o"> /dev/tty
 
  


Reply


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel : Buffer write failed...... help me.. rajsun Programming 0 11-11-2005 03:26 AM
tcp/ip read and write buffer da_kidd_er Linux - Software 0 11-21-2004 04:13 PM
buffer write failed error ricardo_ok Slackware 9 06-10-2004 09:06 PM
CD write buffer size rch Linux - General 1 09-26-2003 05:50 PM
delayed write buffer question aditya General 0 09-12-2002 05:24 AM


All times are GMT -5. The time now is 03:34 PM.

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