Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

SSH through script

DOANov 10 2010 — edited Nov 15 2010
Hi experts,

I am using AIX with 10g database.

I need to write a script (SSH) to copy my database alert_log file (last 15 lines) into a new file say abc.txt and again need to copy this abc.txt to my dataguard side. Dataguar side have same OS with same database.

example:
On $ prompt if I execute the command:

cat alert | ssh blrorn1 "cat >> /d05_proddbx/oraprod/abc.txt"

oraprod@blrorn1's password:

It ask for password,

Any idea that how to set this password in script so that it allow me copy without asking password ????

thanks in ADV !!!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 13 2010
Added on Nov 10 2010
7 comments
503 views