I cannot seem to get this to work:
shell_exec("/anaconda/bin/scrapy crawl script_v5 -a calln=D5 -o output_D5.csv");
I suspect commands manually installed don't work.
In addition, I was trying to dump the $PATH to know where it searches, but
shell_exec("echo $PATH");
returns NULL.
Why is this so, and how do I solve it?
By the way, I ran the script from a browser calling to localhost where MAMP is running.