Re: Script produces nothing when run from web page

2006-10-24 Thread John Kennedy
Hi , I am no expert but I would guess that cgi runs in a restricted environment and doesn't have a full PATH, thus it doesn't know how to call tail and tac. I'd try putting the full path to these in the script. /usr/bin/tail /usr/bin/tac instead of just tail and tac. HTH, if not I am sure so

Re: cgi retaining state (even though I don't want it to)

2004-04-19 Thread John Kennedy
ot;\n"; $doc->dispose; $q->delete_all; exit; sub error { my( $q, $reason ) = @_; print $q->header(-type=>'text/html', -expires=>'now'), $q->start_html( "Error" ), $q->h1( "Error" ),

cgi retaining state (even though I don't want it to)

2004-04-16 Thread John Kennedy
Hi, I am a bit of a beginner and this is my first time using a mailing list so please go easy with me. I have a problem with a perl/cgi script I have written. It's a simple script that takes 2 values and parses an xml file for all entries which lie between the two. It then takes the answers and