I'm using ActiveState Komodo & sometime's Lemmy (VI) ... if I know where
you're going, I also used a tool that ValueWeb provides to strip out ^M
characters.
Jason
----- Original Message -----
From: "Bradley M. Handy" <[EMAIL PROTECTED]>
To: "Jason Purdy" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Tuesday, July 10, 2001 1:42 PM
Subject: RE: Errors
> This may sound silly, but what text editor are you using on your Windows
> machine to edit the script file?
>
> Brad Handy
>
> --www.jack-of-all-trades.net
> [EMAIL PROTECTED]
>
>
> > -----Original Message-----
> > From: Jason Purdy [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, July 10, 2001 1:33 PM
> > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > Subject: Re: Errors
> >
> >
> > Got 2 & 3 covered - rwxr-xr-x and /usr/local/bin/perl'd the
> > scripts (that's
> > one annoying thing I have to update whenever I upload code from my Win32
> > machine to their Linux box).
> >
> > #1 - tried that and still getting the ISE, so it must be a compiler
error
> > ... I didn't know all of those tips - that will help me with this
problem
> > (and w/ future ones, too) - now if I could just find out what the
compiler
> > problem is ... the syntax checks out ... I can't telnet & execute
> > the script
> > in their environment.
> >
> > So you can't just have the normal STDERR that goes to the error_log
> > redirected to a file of your choice?
> >
> > Jason
> >
> > ----- Original Message -----
> > From: "Curtis Poe" <[EMAIL PROTECTED]>
> > To: "CGI Beginners" <[EMAIL PROTECTED]>
> > Sent: Tuesday, July 10, 2001 1:13 PM
> > Subject: Re: Errors
> >
> >
> > > --- Jason Purdy <[EMAIL PROTECTED]> wrote:
> > > > I'm working on a web site that's hosted by ValueWeb (not
> > important, but
> > they give you CGI access
> > > > but they don't give you access to the error log). So I feel like
I'm
> > flying (coding) blind
> > > > sometimes. Especially when I get the Internal Server Error. The
> > scripts in question are
> > > > inherited code and a bit complicated, so it would be MUCH
> > better to see
> > what's going on instead
> > > > of commenting in/out code to track down the problem.
> > > >
> > > > I've tried:
> > > >
> > > > BEGIN {
> > > > open (STDERR, ">>/path/to/error_log"); # also tried
> > ">/path/to/error_log" *shrug* ;)
> > > > }
> > > >
> > > > Also added on (thought maybe the output wasn't flushing or something
> > like that):
> > > >
> > > > END {
> > > > close (STDERR);
> > > > }
> > > >
> > > > And that creates a 0-byte file that doesn't have any contents.
> > > >
> > > > My question is: How can I track down what's going on, on this remote
> > server (with it's own
> > > > unique setup/environment [it works great on my computer])?
> > > >
> > > > Thanks in advance!
> > > >
> > > > Jason
> > > Here are a couple of things you can check:
> > >
> > > 1. Top of script:
> > >
> > > use CGI::Carp qw/fatalsToBrowser/;
> > > $|++;
> > >
> > > That should route many error messages directly from the error log
to
> > the browser. If that
> > > doesn't work, it may mean that your script is not compiling.
> > The second,
> > cryptic, command will
> > > disable output buffering which should increase the likelyhood of
getting
> > *some* output to the
> > > browser, so long as your script is compiling.
> > >
> > > 2. Are your permissions set correctly?
> > >
> > > 3. Does your shebang line point to the Perl interpreter?
> > >
> > > Cheers,
> > > Curtis Poe
> > >
> > > =====
> > > Senior Programmer
> > > Onsite! Technology (http://www.onsitetech.com/)
> > > "Ovid" on http://www.perlmonks.org/
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Get personalized email addresses from Yahoo! Mail
> > > http://personal.mail.yahoo.com/
> >
>