473,669 Members | 2,335 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CGI - Fatal error creating secondary file

30 New Member
Hi

I wrote a cgi code and in output another cgi file is getting created.....jus t
have a look on the code...

Expand|Select|Wrap|Line Numbers
  1. #!/usr/bin/perl
  2. use strict;
  3. use CGI::Carp qw(fatalsToBrowser);
  4. die ’Some disaster!’;
  5. print "Content type:text/plain\n\n";
  6. print "hello";
  7.  
here is the output:

Expand|Select|Wrap|Line Numbers
  1. Content-type: text/html
  2.  
  3. <H1>Software error:</H1>
  4. <PRE>Unrecognized character \x92 at C:\Program Files\Perl Express\Debug\temp1.cgi line 4.
  5. </PRE>
  6. <P>
  7. For help, please send mail to this site's webmaster, giving this error message
  8. and the time and date of the error.
  9.  

how is the temp1 file getting generated?
Apr 12 '07 #1
3 3388
KevinADC
4,059 Recognized Expert Specialist
are you running this as a CGI? Looks like you are on windows, so the shebang line is probably wrong:

#!/usr/bin/perl

maybe it should be:

#!c:/per/bin/perl.exe

my guess is the server is creating the temp file as a last resort since it doesn't know where else to send the error message.
Apr 12 '07 #2
tovenkatesh82
30 New Member
shebang line does not makes a difference for this case.

are you running this as a CGI? Looks like you are on windows, so the shebang line is probably wrong:

#!/usr/bin/perl

maybe it should be:

#!c:/per/bin/perl.exe

my guess is the server is creating the temp file as a last resort since it doesn't know where else to send the error message.
Apr 13 '07 #3
KevinADC
4,059 Recognized Expert Specialist
whats with the unusual quotes in this line in your post?

Expand|Select|Wrap|Line Numbers
  1. die ’Some disaster!’;
instead of ' your code has reverse back-tiks `

when I run your code I get:

Unrecognized character \x92 at C:\PROGRA~1\PER LBU~1\debug\spb dtest.cgi line 6.

Are you trying to test the die function? All your code will do is die.
Apr 13 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

6
16635
by: o'seally | last post by:
solaris/linux admins/rookie_developers that battle with this error are probably all frustrated when it happens. i bet you're also somehow frustrated by this seemingly unsolvable error :-) ...take it easy, it'll go away once u've learned how to play around with a few things on your system and reorganised. i'm particulary a solaris junkie, but linux is my admiration. the issue here is Not the OS/Software, but rather the concept. first of all...
0
9278
by: Gabo | last post by:
Hello, I have a VB front end program that connects to an Oracle backend db. Nothing has changed on either end; however, when I try to connect to the db via VB program I receive a requires OLE DB Session Object. The SQL error I receive is: Tns error struct: nr err code: 0 ns main err code: 12560
1
3935
by: babak | last post by:
Hi everyone I'm doing a project in Microsoft embedded Visual C++ 4.0 and I get the following error when I try to compile: LINK : fatal error LNK1195: target machine 'ARM' requires '/SUBSYSTEM:WINDOWSCE' Error executing clarm.exe. Creating browse info file... WVPNCECl.exe - 1 error(s), 2 warning(s)
1
3162
by: David zhu | last post by:
fatal error CS0042: Unexpected error creating debug information file C:\Inetpub\wwwroot\HSBCS\Pages\HsWebBase\obj\Debug\HsWebBas e.PDB'-- C:\Inetpub\wwwroot\HSBCS\Pages\HsWebBase\obj\Debug\HsWebBas e.pdb: The process cannot access the file because it is being used by another process.
0
2037
by: Greg | last post by:
Hi, creating template1 database in /var/pgsql/data1/base/1... DEBUG: invoking IpcMemoryCreate(size=1081344) FATAL: shmat(id=1179648) failed: Invalid argument What's the problem why is shmat passed a wrong id? I temporarily need Postgres running on Windows98 just to write a client app and I'm stuck at this point.
6
31154
by: Hareth | last post by:
When i build the sample app baseclasses (that came with winfx sdk) i get an error: Error 1 fatal error LNK1181: cannot open input file 'strmiids.lib' BaseClasses I know where the 'strmiids.lib' is, and i even tried to refrence the file, but that didnt help. any ideas?
1
3765
by: kvarada | last post by:
Hello Experts, I am building my application on WinNT.4.0_i386_MSVC.7.1 platform. When I build the application on a stand alone machine, it builds fine. But when I build the same application from a linux box using rsh it gives me the errors below Microsoft (R) Development Environment Version 7.10.3077. Copyright (C) Microsoft Corp 1984-2001. All rights reserved. ------ Build started: Project: SigComp, Configuration: Release Win32 ------...
3
1820
by: sachinv1821 | last post by:
hi , i am Getting this Error fatal error C1189: #error : "eh.h is only for C++!" my Problem is i am Having C++ librabry and Appropriate .h file i want to Access Them is .c File Files..... to Be More Specific i am Creating a C++ Object in a C file... this Giving me the error!!! :( can Any Body Please Help me
10
2063
by: sachinv1821 | last post by:
hi , i am Getting this Error fatal error C1189: #error : "eh.h is only for C++!" my Problem is i am Having C++ librabry and Appropriate .h file i want to Access Them is .c File Files..... to Be More Specific i am Creating a C++ Object in a C file... this Giving me the error!!! :( can Any Body Please Help me
0
8462
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
8382
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
8893
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...
1
8586
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
8658
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6209
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5682
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4206
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
1787
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.