httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrej van der Zee <andrejvander...@gmail.com>
Subject Re: LD_PRELOAD for modules
Date Sat, 27 Mar 2010 11:28:29 GMT
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

Mime
View raw message