Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hiding input

Status
Not open for further replies.

pzoli

Programmer
Nov 17, 2003
3
HU
Can I get a variable with no echo, or echo password char(*)
in awk?

Thanks :

Zoltán Patalenszki
 
pls elaborate on what exactly you're looking for.
an example of two could help.

vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
I want to invoke sqlplus from awk and I have to get database and password in the awk script.


BEGIN {
printf &quot;database:&quot;
getline database
#So I want to read a password (hiding input)
printf &quot;password:&quot;
getline password
}
 
might be easier done in a shell wrapper and passing it [variable/password] to an script with '-v'.

vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
I want to run the same script on Windows,VMS,Unix,Linux.
sqlplus error handling is a little poor, So i have to write
it in scripting language.
I started to learn Awk, becouse it on each platform.

Can i do it in awk?
Can you offer me another scripting language.

Thanks.
 
pzoli,
sorry, I cannot think of a generic OS-independent way of doing what you want. Others may have some tricks up their sleeves.

vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top