Edit key in batch mode
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Fri Aug 18 07:35:20 CEST 2017
Hi Ahmed--
On Sun 2017-08-13 00:45:28 +0000, أحمد المحمودي wrote:
> I have gnupg 1.4 installed on my system. I am trying to edit my key in batch mode using the following command:
>
> gpg --edit-key <keyid> --command-fd 0 --status-fd=2 < scr
>
> the contents of 'scr' file is:
> =====
> adduid
> أحمد المحمودي
> aelmahmoudy at users.sourceforge.net
> Ahmed El-Mahmoudy
> =====
>
> so I get the following error:
>
> Invalid command (try "help")
>
> Can someone help ?
I recommend using GnuPG 2.1 and --quick-add-uid for this purpose.
Regards,
--dkg
More information about the Gnupg-users
mailing list