Search Results

Search: Posts Made By: cityprince143
3,327
Posted By cityprince143
Filtering escape character from expect buffer
I have written an application in Tcl-Expect which spawns minicom and
sends and receives data via the serial port. Sometimes i see that the
application receives control characters along with human...
8,080
Posted By cityprince143
Input file :- ...
Input file :-

http://s27.postimg.org/7ystrij6r/input.jpg

It is reading correctly, but seems like buffer doesn't copy to "outcome".

I see the buffer filled with the content of the inputfile...
8,080
Posted By cityprince143
Help capturing output of expect script
match_max 500000
set timeout 30

set outcome1 {}
set outcome2 {}
set inputfile C:\\Users\\Administrator\\Desktop\\inputfile.txt
send -i $con "\r";
expect -i $con "Desktop>" {
exp_send "type...
Forum: Programming 12-11-2013
3,353
Posted By cityprince143
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...
8,928
Posted By cityprince143
Thank You :-)
Thank You in2nix4life :)

I tried

" $expect_out(1,string)" and " $expect_out(0,string)"
but didn't return what I expected.

instead I use "$expect_out(buffer)" with "match_max 10000" which...
8,928
Posted By cityprince143
Expect_out help!!!
I am trying to read a file via SSH connect and store it to expect_out(buffer). I am a virgin to expect. Help is really appreciated. Wasted almost a day :-(

Code is as follows





expect...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 01:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy