user input in UNIX/Linux Korn Shell ksh - TechRepublic
General discussion
June 21, 2002 at 08:21 AM
ckeruhi

user input in UNIX/Linux Korn Shell ksh

by ckeruhi . Updated 23 years, 10 months ago

Hi,

I want to know the command in Korn shell (ksh) by which I can accept a user input (through keyboard) into a variable. The condition here is that the input value is a password, so the keys typed by the user should not be echoed on the screen.

I know a command “read” which takes input to a variable but I dont know how to accept in a “silent” mode so that the password doesnt show up on screen.

This discussion is locked

All Comments