![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Expect: How to read buffer for spawn | Lokesh Agrawal | Shell Programming and Scripting | 1 | 06-02-2009 01:14 PM |
| Script to open program and send/execute command in program | tuathan | UNIX for Dummies Questions & Answers | 1 | 11-19-2008 09:59 PM |
| brisk 0.0.9 (Spawn branch) | iBot | Software Releases - RSS News | 0 | 03-14-2008 07:20 AM |
| brisk 0.0.2 (Spawn branch) | iBot | Software Releases - RSS News | 0 | 01-31-2008 11:20 AM |
| spawn: not found | sandy.cog | UNIX for Dummies Questions & Answers | 0 | 06-07-2007 12:38 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Yes it does uses expect. Here is script which gives error. Thanks for looking at this.
#!/bin/ksh #Set Oracle Home Directory OHD=/xxx #Change Directory cd /xx/yyy #Define Script Return Code integer RC=0 export oldpass=`cat ${OHD}/.oracle.pw` export newpass=`cat ${OHD}/.oracle_new.pw` /site/bin/expect <<EOF spawn passwd oracle expect "oracle's Old password:" send "$oldpass\r" expect "oracle's New password:" send "$newpass\r" expect "Enter the new password again:" send "$newpass\r" expect eof EOF #Set Return Code From passwd Script RC=$? exit ${RC} |
|
||||
|
Quote:
I figured this out. Send that use old password had wrong password which was reading from one of the files. Once I corrected value in file for old password all worked fine. Thanks for looking at this for me. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|