Encryption Issue

Newton Hammet newton@hammet.net
Thu Sep 26 11:43:44 2002


"Mehta, Swapnil" wrote:
> 
> Hi All,
> 
>         When I try encrypting my file I get a message
> 
>                 'Could not find a valid trust path to the key.....
>                 ........
>                 .....
>                 Use this key anyway?'
> 
>         If i say 'yes' the encryption completes successfully. Is there any
> way i can avoid this message, that way i can avoid manual intervention and
> schedule my encryption script.
> 
> Thanks,
> -Swapnil
> 
> _______________________________________________
> Gnupg-users mailing list
> Gnupg-users@gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gnupg-users

try the following:

gpg --batch -yes <other args>

If that doesnt work ::: 

echo yes | gpg --command-fd 0 --batch <other-args>

Hope this helps.

Regards, Newton