![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Finding Hidden files and protecting the folder containing hidden files from deletion | pochaw | Shell Programming and Scripting | 4 | 12-22-2007 01:33 AM |
| How to check for hidden file | Raynon | Shell Programming and Scripting | 8 | 09-06-2007 04:00 AM |
| Hidden Characters | Khoomfire | UNIX for Advanced & Expert Users | 6 | 07-06-2007 04:40 AM |
| missing hidden characters | SUSANR9999 | UNIX for Dummies Questions & Answers | 2 | 11-09-2006 04:30 PM |
| hidden output | slavam | Shell Programming and Scripting | 3 | 08-25-2004 06:07 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
|||||
|
If you need to authenticate using name/passwd use those credentials within a here-document.
A quick googling gave these Hiding the password There is an interesting solution described in this link How can I hide passwords in a shell script? And finally, Can one prevent passwords from appearing in the system process table? vino |
|
||||
|
The following function demostrate how to ask from user to enter a password.
The password is invisable: Code:
check_schema_password()
{
echo "Please enter $SCHEMA_NAME password (default $SCHEMA_NAME):"
tput invis
read answer
tput sgr0
if [[ $answer = '' ]] ; then
export SCHEMA_PASS=${SCHEMA_NAME}
else
export SCHEMA_PASS=${answer}
fi
}
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|