Read --status-fd with Expect
Jack Bates
di44vq at nottheoilrig.com
Wed Jun 5 20:14:27 CEST 2013
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!
More information about the Gnupg-users
mailing list