shithub: werc

Download patch

ref: 4b8ea49899363f37f7da2ff77506f4089dce46fb
parent: 9aea179273e771eecc4b6cc436806595ab0a72d9
author: uriel <uriel@vm41.cat-v.org>
date: Sat Jun 6 12:15:56 EDT 2009

Add a simple wrapper to log stderr in broken http servers.

--- /dev/null
+++ b/bin/werc_errlog_wrap.rc
@@ -1,0 +1,5 @@
+#!/usr/local/plan9/bin/rc
+
+# This is a wrapper script for broken http servers like recent lighttpd versions which throw away cgi's stderr.
+
+./werc.rc >>[2]/tmp/wlog.txt