473,732 Members | 2,204 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2956
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(fatalsToBrow ser warningsToBrows er);

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(fatalsToBrow ser);

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************* ******@earthlin k.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
5507
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 script and capture its output in a variable. If this was an executable or even another Perl script, I could use the open() function. But since this is a Perl function, I can't use open(). Or can I? There's got be be a way, but my brain is just...
0
2070
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 expected parameter and value from the form.
3
2365
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 particular project, I came across perl, and starting writing the script. I need to read a text containing some coordinates: 248,156 322,156
3
3282
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? here is the file (long file but only the portion of it is shown here)
1
7939
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 someone show me how that's done or post a link to an example. This is what I'm trying to do in perl:
4
3347
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 Cisco Router and i selected Sync reading since i have an expected datapattern when this app runs. However i thought that the read method where supposed to wait util the
0
2261
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 file that I do some replacing in and then fax it out to the end user. I'm trying to read the entire file in as a string variable, but since the file isn't text it's not getting the whole thing and I can't find a simple easy way to do it yet, so...
5
1614
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 extension/library which makes this possible? Thx
5
18231
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 file. Thankyou in advance.
3
7194
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 my PERL script ( I don't care what the Java code does, it could be a hello world for all I care ). All I need to do is read the exit code of the Java program I invoke. 1) How do I invoke the program from perl ?
0
8946
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8774
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9447
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9307
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9235
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8186
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
3261
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2180
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.