Error when using gpg in a cron job

Julius Plenz jp at cvmx.de
Fri Mar 26 22:02:32 CET 2004


* Kurt Fitzner <kfitzner at excelcia.org> [2004-03-26 21:54]:
> My problem is when cron runs this command:
>   cat /root/.gnupg/pass | $GPG --passphrase-fd 0 --quiet \
>     --output $SIGNED --clearsign $REPORT
> 
> I get this error:
>   gpg: cannot open `/dev/tty': No such device or address

home/julius,0$ man gpg | grep -A 2 no-tty
Formatiere gpg(1) neu, bitte warten...
   --no-tty  Make  sure that the TTY (terminal) is never used for any out-
             put.  This option is needed in some cases because GnuPG some-
             times prints warnings to the TTY if --batch is used.

Julius
-- 
Julius Plenz, <jp at cvmx.de>            Surf, Mail, Smile! www.cvmx.de/ <><
http://plenz.com/              Please don't Cc me in your replies, thanks
#129455376             3993 FD19 2AF0 E21E 5D74  E963 144C 5EE9 186D CA0D
gpg           --verbose --keyserver subkeys.pgp.net --recv-key 0x186DCA0D



More information about the Gnupg-users mailing list