This problem exists with gpg and with the older pgp 2.x.  I'd like to solve it 
by redirecting STDIN because pgp 2.x doesn't implement the options that you 
specify.





--- On Sun, 8/29/10, Laurent Jumet <laurent.ju...@skynet.be> wrote:

> From: Laurent Jumet <laurent.ju...@skynet.be>
> Subject: Re: Redirecting STDIN
> To: "James Board" <gnupg-users@gnupg.org>
> Date: Sunday, August 29, 2010, 5:43 AM
> 
> Hello James !
> 
> James Board <jpboa...@yahoo.com>
> 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?
> 
>     "--yes" means "Assume yes on most questions"
>     "--batch" means "Never ask, do not allow
> interactive functions"
>     "--no-tty" means "No warnings to terminal
> because GPG sometimes prints warnings even if --batch is
> used"
> 
>     Using one, two or 3 of these options should
> solve the problem.
> 
> -- 
> Laurent Jumet
>       KeyID: 0xCFAF704C
> 
> _______________________________________________
> Gnupg-users mailing list
> Gnupg-users@gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gnupg-users
> 


      

_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users

Reply via email to