![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Calling expect scripts from other expect scripts | seva | Shell Programming and Scripting | 0 | 04-03-2008 02:45 PM |
| tcl/expect | calsum | Shell Programming and Scripting | 7 | 03-26-2008 01:23 AM |
| Expect/Tcl help? | earnstaf | UNIX for Dummies Questions & Answers | 2 | 07-26-2007 11:01 AM |
| Expect and auto expect command | arun_v | Shell Programming and Scripting | 0 | 03-29-2006 08:31 AM |
| Expect with tcl/tk | sanjustudy | Shell Programming and Scripting | 0 | 10-10-2005 06:48 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
expect and ssh
hello
I installed expect on my solaris box. now I want to execute this command on several servers as root (all of them have the same root password): for i in 1 2 3; do ssh root@"srv"$i" ls /; done; I want of course to skip these 2 steps: The authenticity of host 'srv3 (172.21.26.25)' can't be established. RSA key fingerprint is 2f:0c:4a:ee:19:e1:7e:f2:c8:f6:ac:2a:44:58:be:7b. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'srv3,172.21.26.25' (RSA) to the list of known hosts. Password: How to do that using expect?? thanks |
|
||||
|
Basically agreed. I've had to create a shared memory server and jump through hoops to deal with legacy services without *.equiv available in the past.
Expects RE engine is Tcl's so you can really match whatever regexp you need to get patterns within the expect body. exp_internal 1 is your friend and there are plenty of smart people out at comp.lang.tcl to help you if you run into problems that seem insuperable. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|