summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2011-10-06 21:23:18 +0100
committerNick White <git@njw.me.uk>2011-10-06 21:23:18 +0100
commit95990bd62f671be2f53ffecc470f34ba6f716226 (patch)
treeb455fd3a756cb4acc1255458219935fb16d22326
parent9d68e29dae73cb08534a34ddd54d55a23be16e3f (diff)
Print stderr in gui as well
-rw-r--r--TODO2
-rwxr-xr-xgetxbookgui2
2 files changed, 1 insertions, 3 deletions
diff --git a/TODO b/TODO
index dad013d..ece973d 100644
--- a/TODO
+++ b/TODO
@@ -16,8 +16,6 @@ bug in get() & post(): if the \r\n\r\n after http headers is cut off between rec
what happens if we receive not a http header? does recv loop forever, in a memory killing manner?
-print stderr in gui as well
-
package for osx
package for windows
have tcl as a starpack. have it always reference the executables in its directory, and we're golden.
diff --git a/getxbookgui b/getxbookgui
index 504b6bb..2328f73 100755
--- a/getxbookgui
+++ b/getxbookgui
@@ -6,7 +6,7 @@ set bin [list getgbook getabook]
proc go {} {
set cmd "[.bin get [.bin curselection]] [.id get]"
- set out [open "|$cmd" "r"]
+ set out [open "|$cmd 2>@1" "r"]
while {![eof $out]} {
.txt insert end [gets $out]
.txt insert end "\n"