DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: character display suppression

  1. #1
    Join Date
    Jun 2000
    Location
    dumfries,va,usa
    Posts
    227
    Hi

    How do you suppress character display on unix. I have a script that requests the user for his/her password and I would like to hide the password from the screen!


    Thanks,
    leonard905
    leonard905@yahoo.com

  2. #2
    Join Date
    Dec 2001
    Location
    Bangalore, India
    Posts
    23

    Smile

    Hi Leonard,

    Try this.

    echo "Enter Username : \c"
    read lv_username
    echo "Enter password : \c"
    stty -echo
    read lv_password
    stty echo

    ...
    ...

    stty -echo will suppress the character display.

    stty echo will reinitailize the character display.

    Hope this will help you.
    Regards,
    Vijay R.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width