I know what was wrong now: Ubuntu puts a "use-agent" line in .gnupg/gpg.conf by default. I took it out and now the warnings are gone. Thanks to Olav Seyfarth!
Kind regards, Pepijn Schmitz On vr, 2010-01-08 at 19:04 +0100, Pepijn Schmitz wrote: > Hi everyone, > > I have a backup script which uses gpg to encrypt the backup, and is > executed every night by cron (both by root as by an admin user). This > is gpg 1.4.6 on Ubuntu Hardy LTS. > > My problem is that gpg insists on printing a "gpg: gpg-agent is not > available in this session" warning every time, causing unnecessary > emails from cron even when the backup is entirely successful. I tried > adding the -q option to the command line, but that doesn't seem to > make a difference. I don't want to run gpg-agent (since it is not > needed), or redirect all output to /dev/null or a file (since I do > want emails on genuine warnings). > > Is there any way I can prevent this warning? > > Kind regards, > Pepijn Schmitz
_______________________________________________ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users