This is a discussion on expect script hangs within the Shell scripting forums, part of the Development/Scripting category; Hi All, I am new to using expect. When I am trying to run the below script, it hangs. Can ...
|
|||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
|||
|
Hi All,
I am new to using expect. When I am trying to run the below script, it hangs. Can anyone please help. The below script is used to run a shell script on a remote server. The shell script gets executed successfully but expect probably does not identify eof and hence does not stop. set timeout -1 spawn ssh $user@$ipaddr match_max 100000 expect "*?assword:*" send -- "$password\r" send -- "sudo $arg1 $arg2 $arg3 $arg4 $arg5\r" expect "*?assword:*" send -- "$password\r" expect eof Thanks, antony |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SuSe hangs on shutdown | lacloai | Linux software | 5 | 08-09-2008 02:59 AM |
| expect about helps pls | samuel | Shell scripting | 0 | 03-05-2008 12:05 PM |
| interacting with expect | monteo7 | Shell scripting | 1 | 03-04-2008 04:42 PM |
| Expect and tcl - manymaint.exp script | Intelligen | Shell scripting | 11 | 11-21-2007 02:48 PM |
| script hangs when a remote server is down | vikas027 | Shell scripting | 2 | 11-11-2007 03:47 PM |