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!

reading stderr and stdout in tcl

Status
Not open for further replies.

masssmith

Programmer
Jun 25, 2007
1
US
Hi,
I am a newbie to this forum and to tcl. I wrote a java program that writes output to stderr and stdout. I executed this program in tcl with the exec command. Now I want to read in the information from that stderr and stdout in the tcl script.
Any ideas?
Thanks a lot!
 
Unless you've overwritten the standard stderr and stdout, I think they are volitile streams in the shell, itself. That is, I don't think they exist for Tcl read once the java program has ended. You'd be better off directing them to a file and reading that file with Tcl.

_________________
Bob Rashkin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top