Add an uid in batch mode

Jbar jeanjacquesbrucker at gmail.com
Sun Aug 7 10:19:27 CEST 2011


Hi is there a way to add an uid in batch mode ?

//I have try this ://

$ LANGUAGE=en gpg2 --edit-key --batch mykey
gpg: can't do this in batch mode

// and this //

cat << EOF | gpg2 --edit-key mykey
> adduid
> test_
> test2 at dtc.com
> comment
> o
> save
> EOF

Why the second way does not work ? it should make things simpler to use gpg in other scripts, no ?
(...but maybe with an option to have a standard and international behavior inside gpg prompt, ok.)

Thanks

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
URL: </pipermail/attachments/20110807/7fa98a0a/attachment.pgp>


More information about the Gnupg-devel mailing list