in reply to Wanting Validation for Smacking my Sysadmin (500 error problem)
could it be that you simply need to include,
change your first line (now second line) to:print "HTTP/1.1 200 OK"
or if all else fails, unbuffer STDOUT:print "Content-type: text/html\n\n";
The permissions on the script are OK, if a bit overly generous (755 would do, or even 555). The Perl script does get executed (hence the 'Premature end of script headers', otherwise you'd get a variation on 'Command interpreter not found'), so you're looking at a problem with the script itself.local STDOUT; select((select(STDOUT), $|++)[0]);
Update: Oh, and it's never a good idea to go around smacking sysadmins. They usually have way bigger things to smack you back with, especially the ones of the BOFH variety :).
CU
Robartes-
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Wanting Validation for Smacking my Sysadmin (500 error problem)
by Petras (Friar) on Jan 23, 2003 at 14:20 UTC | |
by robartes (Priest) on Jan 23, 2003 at 16:30 UTC |