Hi falks,
I have the following ksh code:
echo "Enter VS Admin password:"
oldstty=`stty -g`
stty -echo intr '$-'
read password
stty $oldstty
echo
This code ask from a user to enter his password. The OS suppose to hide the entering of the password.
This code works fine On Sun Solaris and HP but fails on Linux.
On Linux,i get the following error message:
Enter VS Admin password:
stty: invalid integer argument `$-'
Try `stty --help' for more information.
Does anyone know how it works on Linux?
Thanks in advance,
Nir