From: Phil Rhoades Date: 2006-12-01T12:00:00+09:00 Subject: Ruby equivalent to "exec > $logfile 2>&1" in sh script? People, I quite frequently have something like: exec > $logfile 2>&1 at the top of my shell scripts to output everything that follows (including errors) into a log file - is there some way of doing the equivalent in a Ruby script? Thanks, Phil. -- Philip Rhoades Pricom Pty Limited (ACN 003 252 275 ABN 91 003 252 275) GPO Box 3411 Sydney NSW 2001 Australia Mobile: +61:(0)411-185-652 Fax: +61:(0)2-8221-9599 E-mail: phil@pricom.com.au