Operating System - OpenVMS
1753781 Members
8110 Online
108799 Solutions
New Discussion

Re: GnuPG not working when in BATCH

 
Steven Schweda
Honored Contributor

Re: GnuPG not working when in BATCH

>    Ah.  That looks like HP's kit, which could account for many things.
> I'd need to do some research, but it may be looking at stdin/SYS$INPUT
> instead of SYS$COMMAND.

 

   For the curious but lazy, yes, HP's GnuPG 1.4.7 reads a passphrase
from SYS$INPUT.  My GnuPG for VMS uses ctermid() to identify the
controlling terminal, just as GnuPG normally does on a
UNIX(-like) system.  According to the CRTL HELP, on VMS, ctermid()
returns SYS$COMMAND.  See [.util]ttyio.c:tty_get_ttyname(), and HP's
[.vms]vms_config.h:HAVE_CTERMID (not defined) v. my
[.vms]config.h_vms:HAVE_CTERMID (defined).

Steven Schweda
Honored Contributor

Re: GnuPG not working when in BATCH