The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to get capture input events from keyboard and mouse yhacks High Level Programming 4 05-26-2008 08:31 AM
Keyboard Input cpaquette High Level Programming 4 04-07-2008 02:44 PM
Detecting Keyboard Input without return ravneetd High Level Programming 4 05-10-2007 08:58 AM
Don't show keyboard input on terminal marianor31 Shell Programming and Scripting 1 03-23-2007 06:54 PM
Suppressing output to the screen rolex.mp UNIX for Dummies Questions & Answers 1 02-08-2007 07:19 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-21-2004
anthreedhr anthreedhr is offline
Registered User
  
 

Join Date: Sep 2003
Location: Indianapolis, IN USA
Posts: 10
Question suppressing keyboard input

Setup Info:
This User Id and Password mention below are being used with the ISQL command to connect to a sybase database so they are likely to not be the same as those that were signed on from the session.

Situation:
Using a korn shell, the shell prompts for a User Id and Password. During the execution, I'm okay with showing the User Id... but since someone could be looking over your shoulder when running the script... I'd like to be able to suppress the keys that the user is typing as they are entering their password.

So the problem is:
Need to be able to suppress the keys that are being pressed when the user is prompted... like when you enter your password when logging in. Does anyone know how I could do this?

Thanks,
Harold
  #2 (permalink)  
Old 10-21-2004
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Add the following to turn off echo before password is entered
stty -echo
and then this to turn back on right after password is entered
stty echo
Closed Thread

Bookmarks

« tcsh | FTP status »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:48 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0