exec works with some, but not all commands
| From: | Jonathan Villa | Date: | Sun, 25 Jul 2004 00:54:04 +0000 |
| Subject: | exec works with some, but not all commands | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-191788@lists.php.net to get a copy of this message | ||
why would exec("touch /var/www/testfile.txt") work but not
exec("/usr/bin/gpg --homedir /home/testuser/.gnupg blah blah blah")
the dir used in homedir has mode 777 just for testing
this is the actual command I'm trying to run...
exec("/usr/bin/gpg --homedir /home/testdir/.gnupg --armor --output e.gpg
-e -r uid_someuser sf.txt");
if I run it from the command line, it works fine...
In summary, I'm trying to get a working gpg script going...