Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

My text is busy?!?!

by ido50 (Scribe)
on Aug 17, 2003 at 20:05 UTC ( [id://284442]=perlquestion: print w/replies, xml ) Need Help??

ido50 has asked for the wisdom of the Perl Monks concerning the following question:

Hi monks.
I got the following problem:
My CGI script, which uses strict, diagnostics and warnings, and has use CGI::Carp qw/fatalsToBrowser/ in a BEGIN block, worked great with no errors of any kind (Syntax OK), no warnings, no whatever. Anyway I did a simple change (In some string, changed from $file to $fileurl or something like that), and the script stopped working with an Internal Server Error message (The CGI::Carp doesn't catch the error). I've executed the shell script given to me by sgifford (Thank you!) and got the following message:
"+ ./downloads.pl
/path-to/errors.cgi: ./downloads.pl: text busy
+ echo Exited with status 2
Exited with status 2" where errors.cgi is the shell script in downloads.pl is the perl script in question.
I have no idea what the problem is and no idea how to fix it and I'm going crazy here. Anyone knows what might happened?!

This is the shell script by the way:
#!/bin/sh -x printf "Content-type: text/plain\n\n"; exec 2>&1 ./downloads.pl echo "Exited with status $?"

-------------------------
Live fat, die young

Replies are listed 'Best First'.
Re: My text is busy?!?!
by valdez (Monsignor) on Aug 17, 2003 at 20:37 UTC
      Thanks, the problem just went away...

      -------------------------
      Live fat, die young
Re: My text is busy?!?!
by chromatic (Archbishop) on Aug 17, 2003 at 20:36 UTC

    The problem is in downloads.pl, which you don't show. Undo your change, run the program from the command line with the -c flag, and fix the error there.

    Without seeing the actual Perl code, there's not much to go on. If it worked before, though, and you changed something and now it doesn't work, whatever you changed broke it. Revert that.

    I wouldn't rely on the error message from the shell script, as I'm not sure exit value 2 returned from Perl is meaningful across platforms. I really have no idea why that shell script would be useful.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://284442]
Approved by antirice
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2024-04-23 11:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found