Can't run GPG through php on linux (works fine through telnet)

Peter T. Abplanalp pta@psaconsultants.com
Mon May 20 21:30:01 2002


On Mon, May 20, 2002 at 07:59:30PM +0100, Andy Freeman wrote:

[snip]

> passthru( " gpg --status-fd 5 5>>$status_file --no-default-keyring --keyring $keyring_file --always-trust -r $key_name -o $out_file -e $in_file ");

i think what you want is:

gpg --status-fd 5 --no-default-keyring --keyring $keyring_file --always-trust -r $key_name -o $out_file -e $in_file 5>>$status_file

as soon as *nix sees the 5>>, it begins to execute.  everything else
on the command line is tossed.  all redirects should come at the end
of your command line.

[snip]

-- 
Peter Abplanalp

Email:   pta@psaconsultants.com
PGP:     pgp.mit.edu