Web Development

General discussion


CGI Scripts and "-w" switch

By leslie.brown@potlatchcorp ·
I have been having lots of problems with CGI scripts (I use LINUX/Apache webserver). Finally I was able to get the simple "Hello World!" script to run but only if I put the "-w" at the end of the Perl call line:

#!/usr/bin/perl -w

Why is thiscausing such a problem for me? I fear that it will cause me lots of problems if I continue my development without finding the cause. Please help!!!!

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

CGI Scripts and "-w" switch

by MelodyJ In reply to CGI Scripts and "-w" swit ...

What error message did you have before adding the -w? A good place to look is your error log - /var/log/error_log. That should help you track down the problem. If not, please post the actual message here and I'll try to help further.


Collapse -

CGI Scripts and "-w" switch

This is the errors (from the log) that I get without the "-w" switch:

[Sun Jul 2 22:41:38 2000] [error] (2)No such file or directory: exec of /home/httpd/cgi-bin/helloworld.cgi failed
[Sun Jul 2 22:41:38 2000] [error] [client] Premature end of script headers: /home/httpd/cgi-bin/helloworld.cgi

Related Discussions

Related Forums