"Richard A. Ryan" <ryan / fsl.noaa.gov> wrote in message news:<3D5D7E39.7050601 / fsl.noaa.gov>... > How would I do the equivalent to the following > Korn/Bourne code in ruby? perhaps like this? old_stderr = $stderr begin File.open( "logfile.text", "a" ) { |log| $stderr = logfile #... do stuff } ensure $stderr = old_stderr end ~ Patrick