[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

cgi = CGI.new causes the script to hang

Gavri Savio Fernandez

11/30/2003 5:55:00 PM

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'
----

thank you

Gavri Savio Fernandez
___________________________________________
What if everything is an illusion and nothing exists? In that case, I definitely overpaid for my carpet. - Woody Allen



2 Answers

ts

11/30/2003 6:00:00 PM

0

>>>>> "G" == Gavri Savio Fernandez <Gavri_F@infosys.com> writes:

G> i don't know what i'm doing wrong, but the following code outputs
G> 'before' and never outputs 'after'. it seems to be stuck in CGI.new.
G> does anyone know what might be the problem here?

It's trying to read name=value pairs on standard input.

Use Control-D (^D) on un*x or ^Z (???) on windows, to close the input.


Guy Decoux



Ara.T.Howard

12/1/2003 5:37:00 AM

0