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-k...@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"
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users