[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] Debugging perl (about the thread "Server Hacked?")
- Subject: RE: [cobalt-users] Debugging perl (about the thread "Server Hacked?")
- From: "Dan" <dan@xxxxxxxxxxxxx>
- Date: Thu Feb 17 20:41:31 2000
> I'm trying to debug a perl script, I get an "internal server error" on the
> browser (as usual). I probably forgot some stupid ; or }, but the only way
> to know what's wrong is using telnet to run the script on the server, and
> get the error. But I don't want to give telnet access to my users (see the
> "Server Hacked?" thread). "debugging perl script" seems to be the only
> reason to give telnet access to the users, so: Is there any way to get the
> errors of the perl script on the browser? Maybe using #!/usr/bin/perl
> -<something>..
>
> I tryed:
>
> using the #exec command on a shtml file to run the script
> usgin the #exec command on a shtml file to run "nohup <script>"
> and get the
> result on nohup.out (not very secure either)
>
> Nothing worked.. Any suggetions?
>
>
You could put:
use CGI::Carp qw(fatalsToBrowser);
after #!/usr/bin/perl
I'm running included scripts on .shtml files with:
<!--#include virtual="/cgi-bin/countdown.pl"-->
--
Dan Kriwitsky