Read --status-fd with Expect
Fraser Tweedale
frase at frase.id.au
Thu Jun 6 01:14:04 CEST 2013
Hi Jack,
The argument to --status-fd must be an open file descriptor. Not
sure of a way to open a raw file descriptor in expect, but you could
use mkfifo(1) and the --status-file argument instead, I think.
Regards,
Fraser
On Wed, Jun 05, 2013 at 11:14:27AM -0700, Jack Bates wrote:
> I am working on non-interactively creating a new subkey, with Expect and
> --status-fd, but I haven't figured out how to read from --status-fd with
> Expect:
>
> $ expect -c '
> spawn gpg --status-fd 3 --edit-key
> CF11451A9BF0C50DA6B17B5926FB09F7C0D5639E addkey;
> interact'
> spawn gpg --status-fd 3 --edit-key
> CF11451A9BF0C50DA6B17B5926FB09F7C0D5639E addkey
> gpg: fatal: can't open fd 3 for status output: Bad file descriptor
> secmem usage: 0/0 bytes in 0/0 blocks of pool 0/0
> $
>
> Has anyone else figured out how to read from --status-fd with Expect?
>
> Thanks!
>
> _______________________________________________
> Gnupg-users mailing list
> Gnupg-users at gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gnupg-users
More information about the Gnupg-users
mailing list