Redirecting STDIN

Doug Barton dougb at dougbarton.us
Sun Aug 29 02:58:35 CEST 2010


On 8/28/2010 5:34 PM, 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?

Is this a gnupg command that is prompting, or something else? If the 
former, which command?


Doug



More information about the Gnupg-users mailing list