guy already mentioned it’s reading from standard in. one thing that’s useful
for testing is:
~ > cat input
~ > foo.cgi < input
this should work on windows, *nix, whatever.
On Mon, 1 Dec 2003, Gavri Savio Fernandez wrote:
Date: Mon, 1 Dec 2003 02:54:37 +0900 From: Gavri Savio Fernandez Gavri_F@infosys.com Newsgroups: comp.lang.ruby Subject: cgi = CGI.new
causes the script to hang
hi, i don’t know what i’m doing wrong, but the following code outputs
’before’ and never outputs ‘after’. it seems to be stuck in CGI.new. does
anyone know what might be the problem here? ---- require ‘cgi’ $stdout.sync
= true puts ‘before’ cgi = CGI.new puts ‘after’ ----
Gavri Savio Fernandez
What if everything is an illusion and nothing exists? In that case, I
definitely overpaid for my carpet. - Woody Allen
ATTN: please update your address books with address below!