Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Switching Users in a batch script
Name: mxer178 Date: October 14, 2004 at 11:03:18 Pacific OS: Sol, HP, AIX, Linux CPU/Ram: alot
Comment:
I am trying automation some unix installs, however, some of the installs need be ran under the root login. I do not want my client app to run as root, too many bad things can happen. So, what are some methods that I can essentially su to root, run my install script, then exit out of my root session?
Summary: Remove all the commands that need to be run as oracle and place them in a different script, say called ora_commands.sh In your main script, when you get to the point where you need to run these comman...
Summary: How to disconnect DB connectivity in a UNIX script. I have connected to a DB using sqlplus command in UNIX shell script. I need to know how to check the DB connectivity and disconnect it in the UNIX s...
Summary: I want to send an attachment in a mail, in a unix script mail -s "subject" user@outlook How can i attach a file in the e-mail. Any advice will be greatly apreciatted. ...