Try adding --no-tty as well as --batch
gpg: cannot open `/dev/tty': No such device or address
You would think the batch(1) would fix it but maybe not.. perhaps you can insert some print statements in the module, run under cron and check the messages emailed to you.
> I was getting the same problem and I included --batch in my commands and it
> worked for me.
>
> cat /root/.gnupg/pass | $GPG --batch --passphrase-fd 0 --quiet \
> --output $SIGNED --clearsign $REPORT
Apparently the cron environment also may have a different locale which can mess up the signature but that is not your problem. The fh is short for filehandle and refers to the pipe the module opens to the gpg program.
Another post notes:
You're running gpg as a batch job and from cron, ie no tty available. GPG can in some occasions still print warnings to the tty even though --batch is used as an option.
> And even when "--no-tty" and "--batch" are given on the > commandline, GPG may ask questions, if I remember correctly. No, there shall be no interactive input with --batch. If you noticed such a case, it is a bug and should be reported.
And even when "--no-tty" and "--batch" are given on the commandline, GPG may ask questions, if I remember correctly. For encrpytion it should work anyway, without questions.
gpg: WARNING: --honor-http-proxy is a deprecated option. gpg: please use "--keyserver-options honor-http-proxy" instead gpg: D61B227D: There is no indication that this key really belongs to +the owner gpg: cannot open /dev/tty: No such device or address the first one can be fixed by removing/commenting out the #honor-http-proxy option in the ~/.gnupg/options file the /dev/tty problem can be fixed by appending --always-trust to the command line, because gpg tries to ask for a passphrase or something to approve the use of an untusted key.
In reply to Re: GnuPG::Interface Problem
by mattr
in thread GnuPG::Interface Problem
by gw1500se
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |