in reply to a classic : 'Premature end of script headers' problem
Can you log into the machine via ssh?? Then..#!/usr/bin/perl # consent.cgi BEGIN { use CGI::Carp 'fatalsToBrowser'; } use strict; use warnings; use CGI qw(:standard); use Fcntl ':flock'; # ...... # as a curiosity also.. my $iam = `whoami`; open(STDERR, '>>', '/home/myself/errlog') or die($!); warn("I am [$iam]");
bash # tail -f /home/myself/errlog
After that hold the shell window on one side, and run the script on the other to see the output real time
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: a classic : 'Premature end of script headers' problem
by ikegami (Patriarch) on Sep 19, 2007 at 18:36 UTC |