|
-
May 20th, 2009, 10:17 PM
#1
Thread Starter
Fanatic Member
Run a linux script from a PHP file!
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
Visit here to learn to make the VB interface fit you!.
"I have not failed 10,000 times. I have successfully identified 10,000 ways that will not work" Thomas Edison 
"The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners" -- Ernst Jan Plugge
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|