wmiirc-rumai

git clone git://oldgit.suckless.org/wmiirc-rumai/
Log | Files | Refs | README | LICENSE

commit 5e4f7bd9ddacd3809ca06bbd31616d1190999be6
parent 62cc5c03d0e009f052fc61ea9a851a6ad8585180
Author: Suraj N. Kurapati <sunaku@gmail.com>
Date:   Fri,  9 Mar 2007 11:49:38 -0800

redirected STDOUT and STDERR to the log file

Diffstat:
wmiirc | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/wmiirc b/wmiirc @@ -33,6 +33,10 @@ end LOG = Logger.new(__FILE__ + '.log', 5) +class << LOG + alias write << +end + LOG.info "birth" # terminate existing instances of this program @@ -49,6 +53,7 @@ LOG.info "birth" Thread.abort_on_exception = true begin + $stdout = $stderr = LOG load File.join(File.dirname(__FILE__), 'wmiirc-config.rb') rescue => e