[SunHELP] Script help

John_Kennedy sunhelp at sunhelp.org
Wed Oct 3 14:25:33 CDT 2001


This is a multi-part message in MIME format.
--------------313093291E33C972140A3381
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Use expect.  Attached is a short script I wrote to something similar.
John


"Craig T. Abram" wrote:
> 
> First off I'm not a script writer so bare with me, I'm only looking for
> suggestions to build script off of .
> Here's what I need to do.
> 1. telnet or rsh (as root) to several nodes
> 2. mount abc:/xx/xx /mnt
> 3. run  command
> 4. umount abc:/xx/xx /mnt
> 
> Thanks in advance
> 
> 
> _______________________________________________
> SunHELP maillist  -  SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp
--------------313093291E33C972140A3381
Content-Type: application/octet-stream;
 name="example.expect"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="example.expect"

IyEvdXNyL2xvY2FsL2Jpbi9leHBlY3QKZm9yZWFjaCBpICJzZXJ2ZXIgbGlzdCB0byB1c2Ut
d2l0aCBxdW90ZXMhISEiIHsKCnByb2MgY29ubmVjdCB7aG9zdH0gewpleHBlY3QgInRlbG5l
dD4iCnNlbmQgIm9wZW4gJGhvc3RcciIKZXhwZWN0ICJsb2dpbjoiCnNlbmQgImpja2VubmVk
XHIiCmV4cGVjdCAiUGFzc3dvcmQ6IgpzZW5kICI8cGFzc3dvcmQ+XHIiCmV4cGVjdCAiJGhv
c3QvamNrZW5uZWQ6IgpzZW5kICIvYmluL3N1IC1cciIKZXhwZWN0ICJQYXNzd29yZDoiCnNl
bmQgIjxwYXNzd29yZD5cciIKZXhwZWN0ICIkaG9zdCIKc2VuZCAiL2Jpbi9jbGVhclxyIgpl
eHBlY3QgIiRob3N0IgpzZW5kICIvaG9tZS9zdW5tYW4vYmluL25ldGFwcC50b3RcciIKcmV0
dXJuIDAKfQoKc3Bhd24gdGVsbmV0CndoaWxlIHtbY29ubmVjdCAkaV0gPT0gMX0gewp9Cmlu
dGVyYWN0Cn0K
--------------313093291E33C972140A3381--




More information about the SunHELP mailing list