The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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
interactive shell script to create users 10.4 tlarkin OS X (Apple) 3 03-27-2008 03:35 PM
Schedule an interactive shell script Chaitrali Shell Programming and Scripting 4 11-08-2007 11:49 AM
Korn shell interactive script leonard905 Shell Programming and Scripting 3 08-02-2007 02:16 PM
Not able to see the inputted command on the shell prompt..but its executing the comnd Crab High Level Programming 3 09-20-2006 07:39 AM
Hide code in shell script??? alan Shell Programming and Scripting 11 08-01-2003 11:33 PM

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

Join Date: Apr 2006
Posts: 1
How to hide user inputted text for interactive unix shell script?

Hi everybody,

Do you know how to hide the text for interactive unix shell script? Just like the case for inputting password during logon.

Patrick
  #2 (permalink)  
Old 04-04-2006
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,717
Do you mean to prevent echoing user input?

Code:
echo "enter something \c"
stty -echo
read something
stty echo
Closed Thread

Bookmarks

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 04:26 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