Flushing expect_out(buffer) | Unix Linux Forums | Programming

  Go Back    


Programming Post questions about C, C++, Java, SQL, and other programming languages here.

Flushing expect_out(buffer)

Programming


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 12-11-2013
cityprince143 cityprince143 is offline
Registered User
 
Join Date: Oct 2013
Last Activity: 14 April 2014, 9:33 PM EDT
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Flushing expect_out(buffer)

Can some one tell me how to flush expect_out(buffer)?

below is my code

Code:
expect -re {.*} {}
expect "swpackages>*"
send  -i $con "trial.bat \r"
set outcome $expect_out(buffer)
expect "*continue*"
set prevreport $expect_out(buffer)
send "\r \r";

problem is :- I am getting "pre" stuffs in my buffer followed by the data I want
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Expect_out(buffer) works but it doesn't get all lines capacho6666 Shell Programming and Scripting 6 02-16-2013 01:05 PM
[SOLVED] Flushing expect_out(buffer) inside a loop SuperSix4 Programming 0 08-31-2012 11:00 AM
expect_out buffer no such variable running script background shellscripter Shell Programming and Scripting 0 10-01-2010 01:34 AM
expect_out(buffer) empty ugobale Shell Programming and Scripting 1 09-17-2009 03:21 AM
Flushing Memory Zak UNIX for Dummies Questions & Answers 2 05-25-2005 04:15 AM



All times are GMT -4. The time now is 07:59 PM.