I know this should frikkin work but it's been pissing me off all night and I can't figure it out. I'm using shell_exec('/media/<....>/mine/script.sh'); and IT WILL NOT RUN RIGHT!!!

If I echo that command and put a return in the script, it outputs that return line. There seems to be NO errors running anything. WFT is the problem?? I've chmod'd 777 to the file, tried changing the file owner to root and nobody and NOTHING WORKS!!!! Can anyone explain why?

Latest Apache/PHP5, Ubuntu Linux


BTW the script is 3 lines really and it runs fine in a terminal on the server.

import -window root /media/disk/apache2dir/mine/screenshot.png
echo This should have ****ing worked!!
exit