Separate Keyring and config for Script

Mark Kirchner mail at mark-kirchner.de
Mon May 23 16:53:33 CEST 2005


On Monday, May 23, 2005, 4:16:01 PM, ml wrote:
> Now when I try to
>
> gpg --no-default-keyring --keyring
> /home/sascha/gpg-skript/auto-gpg-keyring.gpg --options /dev/null
> --no-secmem-warning --charset utf-8 --import /my/path/*.asc 
>
> it works for about 500 files - followed by:
>
> [Error "Too many open files"]

Hm, not sure about that error, but you can probably work around it by
doing something like

find /my/path/ -name "*.asc" -exec gpg --no-default-keyring --keyring
/home/sascha/gpg-skript/auto-gpg-keyring.gpg --options /dev/null
--no-secmem-warning --charset utf-8 --import {} \;

That way, gpg is called for each .asc file separately. Might be
slower, I don't know.

Regards,
Mark Kirchner

-- 
_____________________________________________________________
Key (0x19DC86D3): http://www.mark-kirchner.de/keys/key-mk.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 183 bytes
Desc: not available
Url : /pipermail/attachments/20050523/e5fe488e/attachment.pgp


More information about the Gnupg-users mailing list