# A couple questions about the CGI lib

**URL:** <https://www.ruby-forum.com/t/a-couple-questions-about-the-cgi-lib/130968>\
**Category:** Ruby\
**Created:** [March 4, 2008, 8:47pm UTC](https://www.ruby-forum.com/t/a-couple-questions-about-the-cgi-lib/130968 "2008-03-04T20:47:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![andy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/aeb1de/32.png) [@andy](https://www.ruby-forum.com/u/andy)\
**Post date:** [March 4, 2008, 8:47pm UTC](https://www.ruby-forum.com/t/a-couple-questions-about-the-cgi-lib/130968/1 "2008-03-04T20:47:46Z")

</div>

There is a play by email strategy game that I have been playing for  
quite a while. I’ve been keeping my turn reports and I’ve built a  
tool that will parse them for me so they are a bit easier to read. It  
will also merge my reports with my allys. Anyway, I’m working with  
the CGI lib to try and build a web page for the interface so it will  
be even easier to read. I have two questions. First, is it possible  
for me to send the output directly to a file? Currently I’m going in  
to the command prompt and using ruby cgitest.rb \>blah.html but it  
would be easier if I could just have it automatically put into a file.  
Second, is there a way for me to cancel the off line mode? Having to  
push ctrl + z every time I run the script is a little annoying.  
Eventually I will put this up on the web but for now I just want it to  
run on my machine. Any help would be appreciated.
