November 25, 2024, 01:18:41 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Promt passowrd with invisible mode  (Read 4525 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