From: nobu.nokada@... Date: 2004-01-29T09:17:43+09:00 Subject: Re: Redirecting stdout from within a Ruby script. Hi, At Thu, 29 Jan 2004 09:06:41 +0900, David Douthitt wrote: > Now I want to (optionally) send the data to another program > (/bin/mail) instead of STDOUT. Can I do this > programmatically within the script? STDOUT.reopen(IO.popen("/bin/mail #{ENV['USER']}", "w")) -- Nobu Nakada