I cannot run gpg from a perl script

John.Airey@rnib.org.uk John.Airey@rnib.org.uk
Thu Nov 29 12:45:02 2001

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?

Thank you.
John Airey
Internet systems support officer, ITCSD, Royal National Institute for the
Bakewell Road, Peterborough PE2 6XU,
Tel.: +44 (0) 1733 375299 Fax: +44 (0) 1733 370848 John.Airey@rnib.org.uk 


NOTICE: The information contained in this email and any attachments is 
confidential and may be legally privileged. If you are not the 
intended recipient you are hereby notified that you must not use, 
disclose, distribute, copy, print or rely on this email's content. If 
you are not the intended recipient, please notify the sender 
immediately and then delete the email and any attachments from your 

RNIB has made strenuous efforts to ensure that emails and any 
attachments generated by its staff are free from viruses. However, it 
cannot accept any responsibility for any viruses which are 
transmitted. We therefore recommend you scan all attachments.

Please note that the statements and views expressed in this email 
and any attachments are those of the author and do not necessarily 
represent those of RNIB.

RNIB Registered Charity Number: 226227

Website: http://www.rnib.org.uk