The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 11-20-2007
LivinFree's Avatar
LivinFree LivinFree is offline Forum Advisor  
Goober Extraordinaire
  
 

Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,584
I've done this with shell scripts using something like:

Code:
stty -echo
 printf "Password: "
 read pass
stty echo

Looking at an strace of that, it looks like you could skip running stty and issue the ioctl yourself, but that heads out beyond my knowledge...