I added following line to run shell script in my php file
$output = shell_exec('./script.sh');
echo $output;
and my script.sh looks like
#!/bin/sh
echo etherX|sudo -S chmod 777 upload/*
cd /home/mnit/Desktop/cuckoo_0.3.2
echo "Inside -- "
pwd
when i execute script.sh by terminal it works but not working by php-script in browser.

