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!

Best way to execute shell script owned by different user

807559Dec 7 2007 — edited Oct 1 2008
Hello: I would like to know what is the best way to execute a script owner by a different unix user?
Right now, we run one process using one user; and then do a su manually and run the second process using a different user account ....I would like to automate the process......
I can make the second script executable to all user.... but then I will have to change the code to handle the shell variable etc... su is good, but I have to manually type in the password, and run the script....
Is rsh a good candidate, even though the 2 accounts are on the same box?

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 29 2008
Added on Dec 7 2007
9 comments
500 views