I would like to run a few python scripts(I am aware of the risks , but I HAVE to get it done)
i tried using :
echo exec('python --version ');
as well as
echo shell_exec('python --version ');
Also tried '/usr/bin/python ' instead of just python
but I dont get any output at all.
I have even added the www-data to the sudoers list, still not working.
What should I do ?
Running debian and python 2.7
pythonspecify the path like/usr/local/bin/pythonwhich pythonand then use this path in your code.