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

Steve Butler
Thu Aug 7 20:49:02 2003

Cron Usage:  use the --batch and --no-tty options to gpg.

gpg --batch --no-tty --output junk.txt --decrypt junk2.gpg

-----Original Message-----
From: Mike Hsu []
Sent: Thursday, August 07, 2003 10:18 AM
Subject: gpg script in cron failed with "stdin must be a tty"

	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?

Mike Hsu (
Database Technologist
Northrop Grumman IT
Defense Enterprise Solutions
La Mesa, CA   
619-460-2281 x 237

Gnupg-users mailing list

CONFIDENTIALITY NOTICE:  This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information.  Any unauthorized review, use, disclosure or distribution is prohibited.  If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.