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

Mike Hsu mhsu@nglm.com
Thu Aug 7 20:19:02 2003


Thanks.
Tried </dv/null.

Still not working in cron.

Mike Hsu (mhsu@nglm.com)




-----Original Message-----
From: darren chamberlain [mailto:dlc@users.sourceforge.net]
Sent: Thursday, August 07, 2003 10:31 AM
To: gnupg-users@gnupg.org
Subject: Re: gpg script in cron failed with "stdin must be a tty"


-----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
>=20
> 	runs OK in bash but fails in cron job.
>=20
> 	I get the following message in mail:
> 	stdin must be a tty
>=20
> 	How can I fix this?

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

(darren)

- --=20
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=3D
=3DFLIy
-----END PGP SIGNATURE-----

_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users