473,379 Members | 1,533 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,379 software developers and data experts.

CGI - Fatal error creating secondary file

Hi

I wrote a cgi code and in output another cgi file is getting created.....just
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 3381
KevinADC
4,059 Expert 2GB
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
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 Expert 2GB
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\PERLBU~1\debug\spbdtest.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
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...
0
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...
1
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...
1
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'--...
0
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...
6
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'...
1
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...
3
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...
10
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.