I cannot run gpg from a perl script
Anthony E. Greene
agreene@pobox.com
Thu Nov 29 17:54:01 2001
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thu, 29 Nov 2001 John.Airey@rnib.org.uk wrote:
>I'm trying to run gpg from a perl script, and I get the following errors:
>
>gpg: Warning: using insecure memory!
>gpg: fatal: ~/.gnupg: can't create directory: No such file or directory
>secmem usage: 0/0 bytes in 0/0 blocks of pool 0/16384
>
>This is the command line in my perl script:
>
>/usr/bin/gpg -a -r $person --always-trust -o /path/to/output --batch -e
>/path/to/input 2> /path/to/errors
>
>Where $person is the address of the person I'm trying to send the encrypted
>file to.
>
>What else am I missing?
You need to specify the directory that contains the public keyring and the
options file. This directory should be writable by the user that's running
the script. See the --homedir option in the man page.
Tony
- --
Anthony E. Greene <agreene@pobox.com> <http://www.pobox.com/~agreene/>
PGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26 C484 A42A 60DD 6C94 239D
Chat: AOL/Yahoo: TonyG05
Linux. The choice of a GNU generation <http://www.linux.org/>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Anthony E. Greene <agreene@pobox.com> 0x6C94239D
iD8DBQE8BlbUpCpg3WyUI50RAjKmAJ90gb7fGVUbpZQA5Fha0XPs/qg5OACeIKT4
Dg8LFmF8Weyh0HseDyQeFDo=
=M61C
-----END PGP SIGNATURE-----