Jump to content

Automate Expect Shell in TCL console

Go to solution Solved by VAG,

Recommended Posts

I am trying to use STDOUTREAD and STDINWRITE to interact with the TCL console in DOS prompt. I can only capture those returns from Expect Script partly as I noticed the data I get from STDOUTREAD always don't includes the % string after end of stream. 

[%] represent [$] in the console I am working on.

I also noticed only multi lines return can be captured but not for single line.

I have try to look into STDERR stream but nothing is returned for single line stream.
Is there any Expect command which I can send to the console to make the single line return visible to STDOUTREAD? eg. step  

Edited by VAG
Link to post
Share on other sites
  • Solution

Found a solution, I need to STDINWRITE the following script commands into the Expect console:

dsp param 0x00333099
;return no stream to stdoutread, only display in console.

set var [dsp param 0x00333099]
puts stdout $var  
;return 0x12340000 to stdoutread, also display in console.


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...