[SunHELP] Script help

sunhelp at sunhelp.org sunhelp at sunhelp.org
Wed Oct 3 13:48:21 CDT 2001


>1. telnet or rsh (as root) to several nodes 
>2. mount abc:/xx/xx /mnt 
>3. run  command 
>4. umount abc:/xx/xx /mnt 


Well, first- 1.  If your security is at all implemented, you can't telnet as root, and can't rsh as root. (Hell, for that matter you shouldn't be able to do either at all, but we need to deal with whatever you have at site). So you will likely have to go in as a user and su.

The best answer, IMO, is expect. it's the bonus software CD and is a wonderful tool for interactive scripting like this.

It takes about a half hour to go through a cookbook solution to your problem using a good howto or the ORA expect book. - less if you've seen expect before.

try out: http://expect.nist.gov/
cheers,
Christof




More information about the SunHELP mailing list