Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to disable Expect output to stdout?

Status
Not open for further replies.

LilTCLer

Programmer
Nov 27, 2007
37
US
I have created an Expect program that spawns various processess and checks a bunch of data; however, I do not want the data output to the stdout (screen) so that the user sees all of this during execution. How can I disable this or get around this so that all a user sees are the the prompts from the program itself?

Thanks
 
Nevermind I figured it out.

Using "log_user 0" will disable the output from going to stdout. "log_user 1" re-enables it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top