Share your knowledge at the LQ Wiki.
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 01-07-2013, 09:02 AM   #1
LQ Newbie
Registered: Feb 2012
Posts: 19

Rep: Reputation: Disabled
keystrokes not echoed to console

I have RH6.3 kickstart. After the packages are installed, the system reboots and a scripts runs that prompts for a hostname. When the hostname is typed the keystrokes are not echoed to the console although the keystokes are actually read by the script. This is not an issue with RH5.

Any ideas why the keystrokes are not echoed?


Last edited by gusthecat; 01-07-2013 at 09:04 AM. Reason: forgot info
Old 01-07-2013, 09:12 AM   #2
LQ Guru
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
It may depend from the script itself, even if this behavior is normally used to read passwords. A way to disable the terminal display is
stty -icanon -echo
Anyway, can you show us the script? Using [CODE] and [/CODE] tags, please.
Old 01-07-2013, 09:13 AM   #3
LQ Newbie
Registered: Dec 2006
Posts: 19

Rep: Reputation: 1
If you have access to the GUI, can you reconfigure your keyboard from there and see if it would work.
Old 01-07-2013, 09:39 AM   #4
LQ Newbie
Registered: Feb 2012
Posts: 19

Original Poster
Rep: Reputation: Disabled
There are actually 2 scripts. One that runs after reboot which call the scripts that sets the hostname

cd /tmp/iqcustom/scripts
    local hn=""

    while [ TRUE ]; do
        echo -n "Enter host name: "
        read hn
        case $hn in
                # make sure something is entered
                # will be confirmed later

Could this be related to how the boot.log file is updated? The boot.log contains all the output from script.
I ask because I have experienced a similar but not exact issue using tee while prompting for input.


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
Password echoed at login. stf92 Linux - Security 1 11-26-2010 05:44 AM
Mail being echoed to terminal rovitotv Slackware 5 08-08-2004 07:19 PM
seeing GUI commands echoed in terminal ? hildog Linux - Newbie 3 10-01-2003 12:21 PM
Send keystrokes in console mode Reginald0 Linux - General 2 08-27-2003 07:46 AM
Howcome everything is echoed outside of X? purpleburple Linux - General 2 11-12-2002 03:26 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:39 PM.

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