Redirecting STDIN
John Clizbe
John at Mozilla-Enigmail.org
Sun Aug 29 06:37:14 CEST 2010
James Board wrote:
> I'm trying to encode a file in a shell script on a linux machine. The script
is getting stuck on an interactive question for which the answer is always 'y'
(yes). I tried redirecting stdin from a file, and with 'echo "y" | ....", but
that doesn't work for some reason (it works with other programs that take
interactive input from the user). I also tried the --yes option, but this
doesn't work either.
>
> How can I redirect STDIN to pgp so that questions are always answered 'y'
> and my script won't have to wait on user inputs?
Hmm, what's the question where your script is getting stuck?
If, as I suspect, it's dealing with trusting the key your encrypting to, either
sign the key with a local sig or use '--trust-model always'.
--
John P. Clizbe Inet:John (a) Mozilla-Enigmail.org
FSF Assoc #995 / FSFE Fellow #1797 hkp://keyserver.gingerbear.net or
mailto:pgp-public-keys at gingerbear.net?subject=HELP
Q:"Just how do the residents of Haiku, Hawai'i hold conversations?"
A:"An odd melody / island voices on the winds / surplus of vowels"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 499 bytes
Desc: OpenPGP digital signature
URL: </pipermail/attachments/20100828/8e976b0d/attachment-0001.pgp>
More information about the Gnupg-users
mailing list