April 28, 2024, 06:59:13 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Promt passowrd with invisible mode  (Read 2769 times)

Offline shipoin_97

  • Tux Awared
  • **
  • Posts: 44
Promt passowrd with invisible mode
« on: April 16, 2008, 03:48:36 AM »
Dear Friends ,

 In My Oracle10g database server , I want to run the following script , which prompts for "sys" password .
echo "password please:"
read mypass
rman target sys/$mypass@onlinete << !
run
{
allocate channel t1 type disk;
backup format 'df_%t_%s_%p'
(database);}

But the problem is , when I execute this script it promps for password but not in invisible mode . I want a situation where this script is working with prompt password but not in visible mode . I am working now in Oracle10g in AIX unix platform .
Waiting for ur kind reply ...

Offline dragoncity99

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 551
Re: Promt passowrd with invisible mode
« Reply #1 on: June 13, 2008, 08:40:47 AM »
To hide ur password while u type, hide the command prompt input via:

# stty -echo

To turn back on the text input:
# stty echo