How to execute /home/scripts/test.sh file in php
Previously i have placed 'test.sh' file in the /usr/bin and calling in my php file like this
exec('test.sh ' . escapeshellarg($testString));
But for security reasons i moved .sh file to /home/scripts directory and in my php i am calling like this
exec('/home/scripts/test.sh ' . escapeshellarg($testString));
But it is not working now.
Please suggest me how to achieve this.