Does Python read scripts dirctly from the harddrive or from memory?
All of the scripts that I write are BASH and I've been interested in the possibility of using Python (or any other language, really) as an alternative.
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 ?