Unix/Linux Go Back    


Shell Programming and Scripting BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

learn linux and unix commands - unix shell scripting

How to hide user inputted text for interactive unix shell script?

Shell Programming and Scripting


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 04-04-2006   -   Original Discussion by patrickpang
patrickpang's Unix or Linux Image
patrickpang patrickpang is offline
Registered User
 
Join Date: Apr 2006
Last Activity: 4 April 2006, 7:03 PM EDT
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
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
Sponsored Links
    #2  
Old Unix and Linux 04-04-2006   -   Original Discussion by patrickpang
jim mcnamara's Unix or Linux Image
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
 
Join Date: Feb 2004
Last Activity: 12 January 2018, 4:18 PM EST
Location: NM
Posts: 11,280
Thanks: 581
Thanked 1,125 Times in 1,036 Posts
Do you mean to prevent echoing user input?



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

Sponsored Links
Closed


Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to read the user inputted file name? rac Shell Programming and Scripting 12 03-30-2012 03:25 AM
Help to hide shell terminal and run prompt program after ssh login for specified user franzramadhan Shell Programming and Scripting 1 09-29-2011 06:30 AM
Interactive script to give user option of what text to add marcozd Shell Programming and Scripting 2 05-18-2011 04:15 PM
Need User Inputted Date Zamereon Homework & Coursework Questions 0 01-28-2011 05:35 PM
Help with Interactive / Non Interactive Shell script rits Homework & Coursework Questions 1 08-16-2009 05:39 PM



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