How to debug CGI scripts with simulated variables from server?

William Park opengeometry at yahoo.ca
Mon Apr 26 14:11:10 EDT 2004


Sean Berry <sean_berry at cox.net> wrote:
> I want to debug a script that has a line like the following:
> if len(os.environ["QUERY_STRING"]) > 0:
> 
> How do I debug this from the command line.  I tried
> QUERY_STRING='sized=72&shaped=3' ./aqua_getShapes
> 
> But that returns:
> QUERY_STRING=sized=72&shaped=3: Command not found.

Works fine here (Slackware-9.1 Linux, bash-2.05b).  Try
    export QUERY_STRING=...
    ./aqua_getShapes

-- 
William Park, Open Geometry Consulting, <opengeometry at yahoo.ca>
Linux solution/training/migration, Thin-client



More information about the Python-list mailing list