Some Qs about the -w switch and initializing vars.

2003-06-17 Thread Daedalus
Hi all, I have a cgi prog that complains about uninitialized values when I use the -w switch. To avoid those errors I have done stuff like this: --- # Up near the top with a bunch of other defs and the main prog... my @init_array = ("","

Module to maintain state for CGI?

2002-01-28 Thread Daedalus
Hi all, I've been working on a couple of CGI programs that have reasonably complex menu interfaces. I'm getting tired of passing state via hidden fields and urls but I don't want to depend on cookies. I'm thinking the solution is a server side solution that creates a session ID that can be pass

Re: How can I avoid browser time outs?

2001-07-18 Thread daedalus
hello again, Here is my first attempt to solve this: sub do_report {local ($command) = @_; $| = 1; print "Content-type: multipart/x-mixed-replace;boundary=End\n\n"; open REPORT, "$command 2> /dev/null |" or die my $message = "Working"; until () {$messa

How can I avoid browser time outs?

2001-07-17 Thread daedalus
Hi all, I hope this isn't a goofy question ;-) I have a simple CGI front end for processing Snort logs with Calamaris. It is currently set up like this: sub do_report {local ($command) = @_; $| = 1; print "Content-type: text/html \n\n"; system ("$command 2> /dev/null"); }