Advertisement

01.18.2005 at 09:50AM PST, ID: 21278982
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.0

autoexpect script that hangs

Asked by Cherylvan in Unix Systems Programming

Tags:

I have a telnet script you can run manually that will look like the following:
telnet 99.999.999.999
     It will show the following:
Trying...                  
Connected to 86.208.80.206.
Escape character is '^]'.  
Local flow control off       *At this point I have to press the return key to get the following prompt*

ENTER PASSWORD
*                                    have the password and stuff entered into my auto expect script but the program will hang at

Trying...                  
Connected to 86.208.80.206.
Escape character is '^]'.  
Local flow control off    
and not go any farther (It runs thru a batch editor and it will keep on sticking here until it times out or I kill it.  Attached is my code:

#!/progress/amps/ken/expect/expect -f
set ipaddress [lindex $argv 0]
set pwd [lindex $argv 1]      
set comd [lindex $argv 2]    
set timeout -1              
spawn telnet $ipaddress      
match_max 100000            
expect -exact "Trying...\r  
Connected to ${ipaddress}.\r
Escape character is '^\]'.\r
Local flow control off\r    
\r                          
"                            
send -- "\r"                
expect -exact "\r            
\r                          
ENTER PASSWORD:\r            
* \r"                        
send -- "$pwd\r"            
expect -exact "Command<6>:\r"
send -- "$comd\r"            
expect -exact "\r            
Command<6>:"                
send -- "bye\r"              
expect eof                  

What is the problem that it is not taking the \r and giving me the password prompt?

CherylStart Free Trial
[+][-]01.18.2005 at 10:19AM PST, ID: 13075040

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.18.2005 at 11:31AM PST, ID: 13075769

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.18.2005 at 07:17PM PST, ID: 13079405

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.18.2005 at 08:28PM PST, ID: 13079722

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.19.2005 at 07:14AM PST, ID: 13083459

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.19.2005 at 07:39AM PST, ID: 13083750

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.19.2005 at 05:05PM PST, ID: 13089074

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.21.2005 at 03:51AM PST, ID: 13101879

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.21.2005 at 04:17AM PST, ID: 13102039

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.21.2005 at 04:35AM PST, ID: 13102153

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.21.2005 at 04:59AM PST, ID: 13102308

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.21.2005 at 09:53AM PST, ID: 13104976

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.23.2005 at 05:44PM PST, ID: 13117948

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.24.2005 at 04:48AM PST, ID: 13120764

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.24.2005 at 05:47AM PST, ID: 13121296

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.24.2005 at 06:49AM PST, ID: 13121863

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.24.2005 at 08:19AM PST, ID: 13122769

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.24.2005 at 07:25PM PST, ID: 13128290

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Unix Systems Programming
Tags: autoexpect
Sign Up Now!
Solution Provided By: yuzh
Participating Experts: 3
Solution Grade: A
 
 
[+][-]01.25.2005 at 04:48AM PST, ID: 13131182

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.25.2005 at 05:34AM PST, ID: 13131559

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32