Echo password

hi all,

I am using HP-UX

I want to show password with * instead of space on screen while i entered password through keyboard. can you tell me that shell script code?

i used following code

stty -echo

read pass

stty echo

echo $pass

but this time it wont show anything on screen but i want show **** instead of space
pls help me fast

Thanks and Regards

Hari

Hello,

Per our forum rules, all threads must have a descriptive subject text. For example, do not post questions with subjects like "Help Me!", "Urgent!!" or "Doubt". Post subjects like "Execution Problems with Cron" or "Help with Backup Shell Script".

The reason for this is that nearly 95% of all visitors to this site come here because they are referred by a search engine. In order for future searches on your post (with answers) to work well, the subject field must be something useful and related to the problem!

In addition, current forum users who are kind enough to answer questions should be able to understand the essence of your query at first glance.

So, as a benefit and courtesy to current and future knowledge seekers, please be careful with your subject text. You might receive a forum infraction if you don't pay attention to this.

Thank you.

The UNIX and Linux Forums

Thanks for reply
i searched for that i got only bash and ksh, i want HP-UX system code.

What do you mean by "i want HP-UX system code"? Both bash and ksh are available for HP-UX.

When is your class project due?