nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

script to prompt for password for AIX

This is a discussion on script to prompt for password for AIX within the Shell scripting forums, part of the Development/Scripting category; Dear Friends , I have to find this site the following script : read -s -p "Enter Password: " mypassword ...


Go Back   nixCraft Linux Forum > Development/Scripting > Shell scripting

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 04-15-2008, 04:45 PM
Junior Member
User
 
Join Date: Apr 2008
My distro: Debian
Posts: 1
Rep Power: 0
shipon_97 is on a distinguished road
Default script to prompt for password for AIX

Dear Friends ,

I have to find this site the following script :
read -s -p "Enter Password: " mypassword
which helps to run a script with prompt for a password . It works fine in Linux . Using this I make a RMAN script for Oracle which is also works fine . My script is :

read -s -p "Enter passwd: " mypass
rman target sys/$mypass@onlinete << !
run
{
allocate channel t1 type disk;
backup format 'df_%t_%s_%p'
(database);}

But This script is not wokring in AIX -5.3 unix . Here in this unix I cannot run this script using "read" command .

Can anybody plz help me , How can I use "read" command in AIX unix Like Linux ?
Waiting for ur kind reply .. ..
Reply With Quote
Sponsored Links
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Change root password using perl script? Raj1 Solaris/OpenSolaris 8 06-13-2008 11:01 PM
let users change password using perl script? james bond Getting started tutorials 9 05-24-2007 10:32 PM
HP UX user lock password, change password, password aging rockdalinux HP-UX 0 12-20-2006 02:36 PM
Backup mysql from shell prompt or script raj Linux software 0 07-29-2006 11:17 PM
the script is not accepting password vishal Titre Shell scripting 2 07-17-2006 06:34 PM


All times are GMT +5.5. The time now is 11:06 AM.


Powered by vBulletin® Version 3.7.3 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36