nixCraft Linux / UNIX / Shell Scripting Forum

nixCraft

Linux / UNIX 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 ...


Register free or login to your account to remove all advertisements.

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

Linux answers from nixCraft.


Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques

Reply

 

Thread Tools Display Modes
  #1 (permalink)  
Old 15th April 2008, 04:45 PM
Junior Member
 
Join Date: Apr 2008
OS: Debian
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply


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 Off


Similar Threads

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


All times are GMT +5.5. The time now is 08:55 PM.


Powered by vBulletin® Version 3.8.6 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

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 37 38 39 40