I am trying to execute a cgi / python script from php and at the same time pass the cgi / python script parameter.
in my php i
<? echo exec('/var/www/cgi-bin/test.cgi ' + $_POST["var"]); ?>
However, this does not work, and the apache log says: "sh: 0 not Found"
This test script is very simple:
import cgi, sys, os
for arg in sys.argv:
print arg
source
share