Hi Ian and all, On Thu, May 09, 2002 at 11:25:33AM +0900, Ian Macdonald wrote: > On Thu 09 May 2002 at 11:14:22 +0900, Brian Wisti wrote: > > > Hi all, > > > > I'm stuck on a silly question. How do I print to the httpd error log > > with my ruby CGI program? Under perl, I would just do: > > > > print STDERR "debug info\n"; > > > > Not exactly sure how to go about this. I tried: > > > > $stderr.print "debug info" > > Use '$stderr.puts' to get a new-line at the end of your string. You > might also want '$stderr.flush' to turn off data buffering. > I tried $stderr.flush() with no change. This is a bit frustrating! Do I need to look into recompiling either Ruby (using 1.7.2 on Linux) or Apache (1.3.20)? > > With no output. Any suggestions? As an aside, are there many > > good english-language guides to ruby and CGI? > > The pick-axe book has a good chapter on the CGI library. I don't know > of a specialised publication, though. I have that book. The CGI section is a good overview, but it seems that my needs are a little more narrow than they had time to cover ;-) Still looking, Brian -- | Brian Wisti | brian / coolnamehere.com | http://www.coolnamehere.com/ | "All you need in life is ignorance and confidence, then | success is sure." -- Mark Twain