Hi There,
I'm using shell_exec to run a system command which should generate a file that i want to read, however the file isnt generated.
I have safemode disabled and if i echo out the command and paste it into SSH the command executes fine.
I have checked out the error log and there are no errors.
This is an example of the command i'm running:
echo 'passphrase' | /home/website/gnupg-1.4.2/g10/gpg -u JON --passphrase-fd 0 --clearsign --force-v3-sigs -o /home/website/temp_dir/8edef434308edfa0fd804cfd6d139512.asc /home/website/temp_dir/8edef434308edfa0fd804cfd6d139512.txt
I've tried executing this with system(), shell_exec() and popen() to no avail.
Is there anything i've missed? A php.ini setting that could be incorrect?
This thing has been annoying me for hours now 🙁
Cheers.