The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Shell script getting input from output aspect_p Shell Programming and Scripting 1 03-11-2008 04:37 AM
Input to shell script castlerock Shell Programming and Scripting 3 04-03-2006 02:26 AM
masking or encrypting in shell script dshrish UNIX for Dummies Questions & Answers 4 02-15-2006 10:35 PM
Shell script with input parameter jhmr7 UNIX for Dummies Questions & Answers 1 07-12-2005 09:04 PM
single input shell script? quipy Shell Programming and Scripting 1 10-03-2002 05:18 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 12-23-2003
Registered User
 

Join Date: Jul 2002
Posts: 34
Masking input in a shell script

How do I prevent user input from being displayed in running script (e.g. when entering a password)?

Thanx,
Aaron
__________________
[url=http://www.spetnik.com/images/storybanner.php][img]http://www.spetnik.com/images/storybanner.php?s=i[/img][/url]
Forum Sponsor
  #2  
Old 12-23-2003
Registered User
 

Join Date: Jul 2002
Posts: 34
Nevermind, I got it
PHP Code:
stty -echo
read passwd
stty 
echo 
__________________
[url=http://www.spetnik.com/images/storybanner.php][img]http://www.spetnik.com/images/storybanner.php?s=i[/img][/url]
  #3  
Old 12-29-2003
Kelam_Magnus's Avatar
Registered User
 

Join Date: Aug 2001
Location: DFW McKinney, TX,
Posts: 1,069
Just remember the text input can still be captured.

One course I took a loong time ago, in which I learned how to do just that.
__________________
My brain is your brain
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:02 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0