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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error messages redirect.

Status
Not open for further replies.

ld1976

Technical User
Mar 5, 2007
1
US
Hello, this is a newb question
How can I redirect one tcl command's output to a file?
Say I use:
report_bin shohso
I get in the tclsh:
Error:
Error:
0
But if I use:
report_bin shohso > report_bin.txt
report_bin.txt containts the sting "0", and not the error output.
How can i get it to redirect the error output too?
-LD1976
 
I don't think you can do it from the command line alone, that is, without making some accomodation in the code for using stderr. Have a look here:
_________________
Bob Rashkin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top