in reply to GPG w/o modules question

Maybe these command-line options will help you:
--passphrase-fd n
Read the passphrase from file descriptor n. If you use 0 for n, the passphrase will be read from stdin. This can only be used if only one passphrase is supplied. Don't use this option if you can avoid it.
--command-fd n
This is a replacement for the deprecated shared-memory IPC mode. If this option is enabled, user input on questions is not expected from the TTY but from the given file descriptor. It should be used together with --status-fd. See the file doc/DETAILS in the source distribution for details on how to use it.
--status-fd n
Write special status strings to the file descriptor n. See the file DETAILS in the documentation for a listing of them.

Replies are listed 'Best First'.
Re: Re: GPG w/o modules question
by Molloc (Initiate) on Jul 19, 2003 at 14:32 UTC
    Thank you, I missed that section of the man page. Works great now, using --passphrase-fd 0. BTW, why should that option be avoided?

      I have no idea; that's just pasted from the manpage. Maybe using the other two options makes error handling easier?...

      Because it is much safer if you enter the password yourself, instead of using a program that knows the password. The program can get broken and expose your password.