Unix/Linux Go Back    

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

Flushing expect_out(buffer)


Thread Tools Search this Thread Display Modes
Old Unix and Linux 12-11-2013   -   Original Discussion by cityprince143
cityprince143's Unix or Linux Image
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

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 Linux
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux 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 02:05 PM
[SOLVED] Flushing expect_out(buffer) inside a loop SuperSix4 Programming 0 08-31-2012 12:00 PM
expect_out buffer no such variable running script background shellscripter Shell Programming and Scripting 0 10-01-2010 02:34 AM
expect_out(buffer) empty ugobale Shell Programming and Scripting 1 09-17-2009 04:21 AM
Flushing Memory Zak UNIX for Dummies Questions & Answers 2 05-25-2005 05:15 AM

All times are GMT -4. The time now is 11:42 AM.