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

Yong Wang yong at net.tamu.edu
Wed Aug 4 15:30:01 EDT 2004


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




More information about the Python-list mailing list