print `/usr/bin/gpg --home /path/to/keys --list-keys 2>&1`; #### gpg: failed to create temporary file `/path/to/keys/.#lk0x91f5268.hostname.24199': Permission denied gpg: fatal: can't create lock for `/path/to/keys/trustdb.gpg'