Hi, Maybe a bit off-topic for this mailing list, but I need to do the same preload-trick for CGI applications written in C++. I was thinking about a wrapper bash-script that usese LD_PRELOAD in addition to a rewrite rule in Apache directive. I have some problems with the wrapper script:
#!/bin/bash LD_PRELOAD=/path/to/modified/mysql/libmysql_client.so /mbrace/htbin/cpp-appl.cgi Obviously this does not work because I need to redirect stdin to cpp-appl.cgi and return whatever cpp-appl.cgi through stdout. Don't know how to do this. I am sure I am not the first one to do this, but can't find any useful examples. I was hoping you could help me out? Thank you, Andrej