gpg script in cron failed with "stdin must be a tty"

darren chamberlain dlc@users.sourceforge.net
Thu Aug 7 19:33:02 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

* Mike Hsu <mhsu at nglm.com> [2003-08-07 13:26]:
> 	A simple gpg script with no passphrase needed:
> 	gpg --output junk.txt --decrypt junk2.gpg
> 
> 	runs OK in bash but fails in cron job.
> 
> 	I get the following message in mail:
> 	stdin must be a tty
> 
> 	How can I fix this?

Have you tried adding < /dev/null to the command line?

(darren)

- -- 
Hard as it is to believe, sometimes bloody, proletariat revolution
just isn't the answer.  Like in Algebra class, for example.
    -- Don Swain
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: This message is digitally signed and can be verified for authenticity.

iD8DBQE/MozTzsinjrVhZaoRAjB7AJ96vWBOL8TrTPWyzwLy0MWHaUhjZACcC+9n
Vj3ECVekzVmIV6UbiWP4G2Y=
=FLIy
-----END PGP SIGNATURE-----