LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 01-07-2013, 10:02 AM   #1
gusthecat
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?

Thanks

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

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
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
Code:
stty -icanon -echo
Anyway, can you show us the script? Using [CODE] and [/CODE] tags, please.
 
Old 01-07-2013, 10:13 AM   #3
legolasthehansy
LQ Newbie
 
Registered: Dec 2006
Posts: 16

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, 10:39 AM   #4
gusthecat
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

install-post.sh

Code:
cd /tmp/iqcustom/scripts
./set_hostname.sh
set_hostname.sh
Code:
    local hn=""

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

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.
 
  


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


All times are GMT -5. The time now is 11:46 AM.

Main Menu
Advertisement
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 Google+: linuxquestions
Open Source Consulting | Domain Registration