From 9d87478586bfa1921f52381d8a03168ce4b881d2 Mon Sep 17 00:00:00 2001 From: Uriel Date: Sat, 6 Jun 2009 16:15:56 +0200 Subject: [PATCH] Add a simple wrapper to log stderr in broken http servers. --- bin/werc_errlog_wrap.rc | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 bin/werc_errlog_wrap.rc diff --git a/bin/werc_errlog_wrap.rc b/bin/werc_errlog_wrap.rc new file mode 100755 index 0000000..8a803cc --- /dev/null +++ b/bin/werc_errlog_wrap.rc @@ -0,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