INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

RDA execution

RDA execution

(OP)
Morning guys,

I am running oracle 11g, on solaris 10.
I need to run the rda.sh script everyday, via a crontab.Problem is it needs operator intervention to type in the password, how can I pass the password in the script?

Any help will be much appreciated

RE: RDA execution

(OP)
setup this script

CODE

#!/bin/ksh

export ORAENV_ASK=NO
export ORACLE_SID=MAC
PATH=$PATH:/usr/local/bin
. oraenv
unset ORAENV_ASK

PASS="sun8"
WORKDIR=/u1/oracle/product/11.2.0/db_1/rda
echo "$PASS" | $WORKDIR/rda.sh -v > $WORKDIR 
But not accepting password
Any help will be highly appreciated

RE: RDA execution


Try using "expect".
3eyes

----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb

RE: RDA execution

There is a nice linux tool called expect that will allow you to pass the password. see

http://expect.sourceforge.net/

Bill
Lead Application Developer
New York State, USA

RE: RDA execution

I missed the message from LKBrwnDBA. Sorry

Bill
Lead Application Developer
New York State, USA

RE: RDA execution

(OP)
Morning,

We dont have expect on our Solaris box.
Is there any other way?

RE: RDA execution

no one does, you have your system administrator download and install it. every linux box I have used has had it installed.

Bill
Lead Application Developer
New York State, USA

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close