473,395 Members | 1,437 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How to read perl-cgi-crash-outputs WITHOUT telnet access ?

I want to call cgi perl scripts on my web hosters server from
my HTML web pages (on the the web hosters server too).
It occurs sometimes (especially during development phase) that these cgi-perl scripts
didn't work like intended. They crash because e.g.

- syntax errors
- wrong or changing pathes
- unexpected user input
- ...

In former times I could easily track these crashes resp. try these cgi-scripts directly
with a telnet account/window.

However nowadays telnet access is mostly seen as a security hole a telnet account is not available any more.

How can I get the information about what went worng with a certain cgi-script otherwise ?

The system log shows (AFAIK) only a line similar to "cgi script myscript123.pl dumped at 11:34:23 time"

How can I get the information at which line the cgi script crashed and what the variable values were
at crash time ?

Imagine I entered in the HTML page a wrong path to the perl cgi script.
In which log file is it written?

Patricia

Sep 27 '06 #1
4 2933
Patricia Mindanao wrote:
I want to call cgi perl scripts on my web hosters server from
my HTML web pages (on the the web hosters server too).
It occurs sometimes (especially during development phase) that these
cgi-perl scripts didn't work like intended. They crash because e.g.

- syntax errors
- wrong or changing pathes
- unexpected user input
- ...

In former times I could easily track these crashes resp. try these
cgi-scripts directly with a telnet account/window.

However nowadays telnet access is mostly seen as a security hole a
telnet account is not available any more.

How can I get the information about what went worng with a certain
cgi-script otherwise ?

The system log shows (AFAIK) only a line similar to "cgi script
myscript123.pl dumped at 11:34:23 time"

How can I get the information at which line the cgi script crashed and
what the variable values were at crash time ?

Imagine I entered in the HTML page a wrong path to the perl cgi
script. In which log file is it written?
use CGI::Carp qw(fatalsToBrowser warningsToBrowser);

This send any errors and warnings to the browser rather than just an
Error 500 (or similar) statement.

Search CPAN for more info.

Sep 27 '06 #2
l v
Patricia Mindanao wrote:
I want to call cgi perl scripts on my web hosters server from
my HTML web pages (on the the web hosters server too).
It occurs sometimes (especially during development phase) that these cgi-perl scripts
didn't work like intended. They crash because e.g.

- syntax errors
- wrong or changing pathes
- unexpected user input
- ...

In former times I could easily track these crashes resp. try these cgi-scripts directly
with a telnet account/window.

However nowadays telnet access is mostly seen as a security hole a telnet account is not available any more.
Typically telnet access is then replaced with ssh access.
>
How can I get the information about what went worng with a certain cgi-script otherwise ?

The system log shows (AFAIK) only a line similar to "cgi script myscript123.pl dumped at 11:34:23 time"

How can I get the information at which line the cgi script crashed and what the variable values were
at crash time ?

Imagine I entered in the HTML page a wrong path to the perl cgi script.
In which log file is it written?
These are written to your web server logs. Location and name depends on
which web server you are using. Check the documentation of you web server.
>
Patricia

--

Len

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Sep 27 '06 #3
On 09/27/2006 08:14 AM, Patricia Mindanao wrote:
I want to call cgi perl scripts on my web hosters server from
my HTML web pages (on the the web hosters server too).
It occurs sometimes (especially during development phase) that these cgi-perl scripts
didn't work like intended. They crash because e.g.

- syntax errors
- wrong or changing pathes
- unexpected user input
- ...

In former times I could easily track these crashes resp. try these cgi-scripts directly
with a telnet account/window.

However nowadays telnet access is mostly seen as a security hole a telnet account is not available any more.

How can I get the information about what went worng with a certain cgi-script otherwise ?

The system log shows (AFAIK) only a line similar to "cgi script myscript123.pl dumped at 11:34:23 time"

How can I get the information at which line the cgi script crashed and what the variable values were
at crash time ?

Imagine I entered in the HTML page a wrong path to the perl cgi script.
In which log file is it written?

Patricia
Find out what provisions your hosting service or company has for
providing you with your script errors. Hosting services do this differently.

For Perl scripts, in many cases you can start your program like this:

use CGI::Carp qw(fatalsToBrowser);

And that will cause fatal errors to be sent to the browser, but even
that is not guaranteed to work. Contact your hosting service.

P.S.
In many places, telnet has been replaced with "ssh." Ask them if you
have ssh access to your web-site account. But even then, ssh access does
not guarantee permission to view the error logs.

--
pa*******************@earthlink.net
Sep 27 '06 #4
Patricia Mindanao wrote:
I want to call cgi perl scripts on my web hosters server from
my HTML web pages (on the the web hosters server too).
It occurs sometimes (especially during development phase) that these cgi-perl scripts
didn't work like intended. They crash because e.g.

- syntax errors
- wrong or changing pathes
- unexpected user input
- ...

In former times I could easily track these crashes resp. try these cgi-scripts directly
with a telnet account/window.

However nowadays telnet access is mostly seen as a security hole a telnet account is not available any more.

How can I get the information about what went worng with a certain cgi-script otherwise ?

The system log shows (AFAIK) only a line similar to "cgi script myscript123.pl dumped at 11:34:23 time"

How can I get the information at which line the cgi script crashed and what the variable values were
at crash time ?

Imagine I entered in the HTML page a wrong path to the perl cgi script.
In which log file is it written?

Patricia
My ISP allows secure Telnet access. I use Tera Term Pro as called from
a Tera Term secure shell addon. Both are quite old, but the security is
deemed sufficient by my ISP. Indeed, my ISP suggested these two and
told me where to find them.

Tera Term Pro is at
<http://hp.vector.co.jp/authors/VA002416/teraterm.html>. The Web site
for the secure shell addon is now defunct, but there are other addons
listed at this URL.

Discuss this with your hosting service before downloading and installing
any secure Telnet client. The service might prefer a particular client
software, or the service might just say that no Telnet access is
permitted under any circumstances. In the end, your service must grant
you Telnet access to its Web server.

--

David E. Ross
<http://www.rossde.com/>

Concerned about someone (e.g., Pres. Bush) snooping
into your E-mail? Use PGP.
See my <http://www.rossde.com/PGP/>
Sep 27 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Alfred von Campe | last post by:
I would think this is simple to do, but I just can't figure it out this morning. Assume I have a function in Perl which writes some output to STDOUT. I want to call this function from a Perl...
0
by: Joe Burnett | last post by:
Hello, I am using the following perl read function to read form information from a client web page: read(STDIN, $GN_QUERY, 100); Everything works fine on a Linux/Apache server. I get the...
3
by: Berk Birand | last post by:
Hi, I am new to Perl (as a matter of fact, I started learning it a couple of days ago; I have some previous programming experience though). When looking for the ideal languages to use for a...
3
by: NNTP | last post by:
I'd lile to read the following file and output everything from 'NetBIOS Name Table for Host 192.168.5.10' to the first occurance of "----------------------------------------" can perl do that?...
1
by: Rob | last post by:
Hi, Sorry if this has been asked before(I searched, but didn't see anything). I need to read a tab delimted file into an array with ASP. Should be easy enough, I know it is in Perl and PHP. Can...
4
by: Kai Thorsrud | last post by:
Hi, Thanks a lot for the short path solution to the app i'm working on by including a Perl script ( App i'm converting from perl to .Net) for the part i can't do yet. I'm communicating with a...
0
by: TRB_NV | last post by:
I'm on a new hosted server platform which doesn't support PERL, so I'm converting some of my old code so it'll run as ASP. I have a routine I wrote in 1998 where I have a standard template Word...
5
by: Radium | last post by:
Hi, what i want is something similar to th simple-xml extension of php, but for html. I have to analyze and read in certain tags from a html file in a comfortable manner. Is there a php...
5
by: bhavanirayala | last post by:
Hello All, I am very new to perl.I am a java person. I have to read xml file in perl script and use those values in that file. So can anybody please help me to solve this xml parsing in perl...
3
by: limnath | last post by:
Hello everyone, I am new here and very new to PERL, just reading a book on scripting in PERL. I have a quick need which I hope anyone can kindly help me. I need to invoke a Java program from...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.