This is a discussion on interacting with expect within the Shell scripting forums, part of the Development/Scripting category; hello, I'm calling expect from a shell script and am having trouble interacting once connected. The below script autmates the ...
|
|||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
|||
|
hello, I'm calling expect from a shell script and am having trouble interacting once connected. The below script autmates the login and after running a command (through ssh), I want to interact and am unable to. Any thoughts would be appreciated. Thanks. And sorry for the long code snippet, but I thought full code would be appreciated.
Quote:
Last edited by monteo7; 03-04-2008 at 02:19 AM. Reason: correcting code, removing function not called in this script. |
| Sponsored Links | ||
|
|
|
|||
|
OK, is my code too long that nobody is answering it or is it that noone knows the answer? In short here's my problem: I don't know how to interact when calling expect through shell script. Please note in this shortened version you will need to change 'someHost' to an actual ip address or host name in order to establish an ssh connection and optionally $LOGNAME to a valid user name (if not on unix).
I'm trying to automate the login only and when a prompt is reached exit login loop and interact with user. Quote:
|
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| expect about helps pls | samuel | Shell scripting | 0 | 03-05-2008 12:05 PM |
| Expect and tcl - manymaint.exp script | Intelligen | Shell scripting | 11 | 11-21-2007 02:48 PM |
| Interacting with a Linux Process through Scripts | manikandakumar | Shell scripting | 1 | 08-17-2007 06:49 PM |