Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: I can't connect to DBM Databases

by naikonta (Curate)
on Oct 16, 2007 at 01:44 UTC ( [id://645090]=note: print w/replies, xml ) Need Help??


in reply to I can't connect to DBM Databases

Could you please show us the message from the error log? You put $! in your die statement so the error log may give some clue. Beware that you might have a permission problem.

Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!

Replies are listed 'Best First'.
Re^2: I can't connect to DBM Databases
by fromjp (Initiate) on Oct 16, 2007 at 03:16 UTC
    Hello, naikonta: Here is the copy of the log when I tested the band.cgi from the command line. There were no error messages. Or, should I see other error log somewhere. I leaned to use die function. But, I didn't know wherelse to see error messages.

    If it's the permission problem, could I do anything on the code? Shebang line? Or else? Thank you.
    [yyokot01@crux chap09]$ perl -c band.cgi band.cgi syntax OK [yyokot01@crux chap09]$ perl -w band.cgi Content-type: text/html (offline mode: enter name=value pairs on standard input; press ^D or ^ +Z when done) Button=Put+Me+On+your+Mailing+List Name=Jane Emai=jc@pop.com [yyokot01@crux chap09]$

      Maybe this helps:

      use CGI::Carp qw(fatalsToBrowser);
        >use CGI::Carp qw(fatalsToBrowser); Thank you. I added this line and tested the code. But, nothing different happened...
      fromjp,

      Basically, running a CGI program is quite differently from running command line program. I'm afraid you need to obtain some basic knowledge about CGI programs at general. I hope you can find some suitable tutorials for begineer on CGI. You can start with google, or CGI Programming tutorial.


      Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-04-25 23:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found