Compiled C++ and Mysql codes run in python cgi script

From: Yong Wang (yong_at_net.tamu.edu)
Date: 08/04/04

  • Next message: Michael Ekstrand: "Re: Decorator syntax (was Re: PEP 318 - PyFIT comments)"
    To: python-list@python.org
    Date: Wed, 4 Aug 2004 14:30:01 -0500 (CDT)
    
    

    Hi, All:
         We have a network management system written in C++, MysQL, and Hp
    SNMP. It works in Solaris command line. When I wrote a similar
    python codes which call compiled C++ and mysql codes in solaris
    command line, the comipled codes work fine in wraped python file. When
    I change the python codes to web interface in python CGI script, I got
    message
    that "Can't connect to local MySQL server through socket
    '/tmp/mysql.sock'"
    How can I fix this problem because we want to migrate solaris command
    line system to web access system ? The easiest way for me is directly
    to call
    compiled C++ and mysql codes (excutable) in python CGI scripts, then
    post the run
    results in website.
       Thank you very much in advance and I am looking forward to your
    reply.

                      Yong


  • Next message: Michael Ekstrand: "Re: Decorator syntax (was Re: PEP 318 - PyFIT comments)"

    Relevant Pages

    • Pythons GIL
      ... GIL being Global Interpreter Lock. ... of Python byte codes, and releases the GIL. ...
      (comp.programming.threads)
    • Re: is there any overheard with try/except statements?
      ... any errors that might occur within the codes itself (i.e. using if ... Is this the case at all with Python, in terms of extra work or slower ... C++/C# programmers came from C, where exceptions don't exist, so they're ...
      (comp.lang.python)
    • Re: Why Ruby over Python?
      ... focus on codes readability, ... For example, both Python and Ruby allow running code to alter existing classes, including core classes. ... In the Ruby community this is simply one of many techniques for building applications and is pretty common. ...
      (comp.lang.ruby)
    • Re: always raise syntax error!
      ... daniel wrote: ... I finally re-type all the codes where python would raise syntax error, ...
      (comp.lang.python)
    • Re: always raise syntax error!
      ... I finally re-type all the codes where python would raise syntax error, ... I did not examine every single word of my old codes though, ...
      (comp.lang.python)