![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
| suppress echo while reading input in expect | sudhir_onweb | Shell Programming and Scripting | 1 | 07-23-2007 10:54 AM |
| Script for Reading a Password file | srirams | Shell Programming and Scripting | 2 | 03-07-2007 10:20 AM |
| ASCII character to accept logon password | gord | UNIX for Dummies Questions & Answers | 8 | 02-02-2006 03:58 PM |
| How to echo password characters | mukluk | UNIX for Dummies Questions & Answers | 4 | 09-12-2005 08:34 AM |
| reading a single character in C | alodha | High Level Programming | 3 | 01-28-2005 06:22 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Reading password and echo * character
Hi,
First of all i am using solaris 10. I want to write a script that ask user to enter password and read the character input from keyboard. The ask to re-enter the password and then if they are match it will accept. But my problem is I want to echo a '*' character instead of the character I entered from keyboard, Please help me with this.... I know how to hide by turning off echo as 'stty -echo' but i want to display '*' character. Will it be possible? Please help Thank you Alan |
|
||||
|
The \c means don't print a newline (in some versions of echo) and \b is backspace. Read the documentation for your echo (or maybe printf) to see the available escape codes. Basically it's just ASCII anyway. The backslashes are doubled because the shell eats one level (or you could use single quotes).
|
![]() |
| Bookmarks |
| Tags |
| keystroke |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|