cvs and shell_exec
| From: | Jurgens du Toit | Date: | Tue, 16 Sep 2003 13:05:57 +0000 |
| Subject: | cvs and shell_exec | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-162734@lists.php.net to get a copy of this message | ||
Hi...
I'm trying to parse my cvs's logs through php, but am coming up short with shell_exec.
shell_exec works fine with all the other commands i have tried, but not with cvs.
I've tried the cvs command as myself, and that works.
I've run the command as user 'nobody', and that works as well.
There is no indication in /var/log/messages or /var/log/apache/error_log that something's not working.
Any Ideas? The releavant code is underneath...
Jrgns
--
<><
dutoitjj@yahoo.co.uk
083 511 7932
"For those who believe no evidence is necessary.
For those who don't, no evidence would suffice."
$command = "cd /home/jrgns/MyProject; /usr/bin/cvs -d /usr/share/cvs
status";
$results = shell_exec($command);
print ($results);