![]() |
|
|
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 |
| How to pass values between awk and shell scripts | rajnikanth.1912 | Shell Programming and Scripting | 9 | 03-20-2009 02:25 PM |
| Oracle Passwords in Unix scripts | clifford | Shell Programming and Scripting | 5 | 05-16-2008 12:33 PM |
| Checking passwords - scripts | bullz26 | Shell Programming and Scripting | 5 | 03-11-2008 08:21 AM |
| Bash script pass sentence in block | katrvu | Shell Programming and Scripting | 6 | 02-11-2008 11:04 AM |
| How to pass values from one file to different scripts | pssandeep | UNIX for Dummies Questions & Answers | 6 | 12-14-2007 07:14 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
How to pass passwords to bash scripts?
I'm finding the following command very tedious to type in all the time, so I created a one line bash script called mount.bash with the following contents:
mount -t cifs //mark/C\$ -o unc=//mark\\C$,ip=10.1.1.33,user=Administrator,password=$1 /mnt/mark I don't like the fact that I have to put my password on the command line. What can I do to to prompt for $1 if it is not provided on the command line and echo "*"'s instead of the actual characters being typed? Thanks, Siegfried |
| Bookmarks |
| Tags |
| linux |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|