Does the script work when you run it by hand?

Try to insert an echo "TESTER" in the top the shell script to make sure
something is sent to stdout. And then check in your php script that you
receive the message.

Best regards,
Jacob Vennervald

On Wed, 2003-08-06 at 08:38, Chris Blake wrote:
> Greetings learned PHP(eople);
> 
> I have a small script sitting in my web directory which I have called
> upon as follows :
> 
> <?php
> shell_exec('./info.sh');
> ?>
> 
> The script is not being run, yet I can do things like
> 
> <?php
> $info=shell_exec('ls -l');
> echo '<pre>$info</pre>';
> ?>
> 
> ..which produce output to the browser...
> 
> I have tried 'chown apache:apache info.sh' but this doesn`t change
> anything....
> I have also tried using './info.sh' with no result....
> 
> Any pointers much appreciated as to why this won`t work. The permissions
> are as follows for the script file :
> 
> -rwxrwxrwx    1 root     root         2456 Aug  5 16:35 info.sh
> 
> Regards
> 
> -- 
> Chris Blake
> Office : (011) 782-0840
> Cell : 083 985 0379
> 
> Join the army, see the world, meet interesting, exciting people, and
> kill them.
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
-- 
Venlig hilsen / Best regards,
Jacob Vennervald
System Developer
Proventum Solutions ApS
Tuborg Boulevard 12
2900 Hellerup
Denmark
Phone:  +45 36 94 41 66
Mobile: +45 61 68 58 51



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to