Mailing List Archive

problems with GPG & cron scripts ..? what can i do?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On the keyserver that I maintain/admin (http://pgp.yashy.ottawa.on.ca)
I've set up a cron script uses gpg to automatically create a list of
newly added keys.

If I manually invoke the script all works well, however when the cron
job executes the same script it gives me the following error:

>---------- Forwarded message ----------
>Date: Fri, 13 Nov 1998 01:00:08 -0500
>From: Cron Daemon <root@euphoria.yashy.ottawa.on.ca>
>To: pgp@euphoria.yashy.ottawa.on.ca
>Subject: Cron <pgp@euphoria> $HOME/scripts/daily
>
>gpgm: fatal: cannot open /dev/tty: No such device or address
>gpgm: fatal: cannot open /dev/tty: No such device or address

the line which i'm executing is as follows:

gpgm $HOME/public_html/daily-added.txt>$HOME/public_html/list-keys.txt


The files which are generated/created and are available on
http://pgp.yashy.ottawa.on.ca are as follows:

NOV1998-added.zip - maintains a list of keys added in the last month
NOV1998.zip - a list of all the keys on the keyserver
added-keys.txt - all the keys added since the begining of the month

can anyone suggest as to what I can do to fix/alleviate the error I am getting?

regards

robert



Robert Guerra <az096@freenet.toronto.on.ca>
WWW Page <http://www.interlog.com/~rguerra/www>
PGPKeys <http://www.geocities.com/CapitolHill/3378/pgpkeys.html>

-----BEGIN PGP SIGNATURE-----
Version: PGP Personal Privacy 6.0
Comment: Digital Signatures ensure authenticity and author

iQA/AwUBNk8o/8KdCsHMpdeSEQJX3wCeMrIvIoTWm4LkMqDkP1j0Bo/h9iQAoMX0
ZI2YHUzUC1TIstYhgFulmzed
=u1Tg
-----END PGP SIGNATURE-----
Re: problems with GPG & cron scripts ..? what can i do? [ In reply to ]
Robert Guerra <az096@freenet.toronto.on.ca> writes:

> >gpgm: fatal: cannot open /dev/tty: No such device or address

add the option "--batch" and it should not try to open the tty.