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

Mike Hsu mhsu@nglm.com
Thu Aug 7 21:39:02 2003


Thanks.

"gpg --batch --no-tty --output junk.txt --decrypt junk2.gpg"
is not working in cron.

It works fine with "at" but with in "cron".

Mike Hsu (mhsu@nglm.com)


-----Original Message-----
From: Steve Butler [mailto:sbutler@fchn.com]
Sent: Thursday, August 07, 2003 11:49 AM
To: gnupg-users@gnupg.org
Subject: RE: gpg script in cron failed with "stdin must be a tty"


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 [mailto:mhsu@nglm.com]
Sent: Thursday, August 07, 2003 10:18 AM
To: gnupg-users@gnupg.org
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 (mhsu@nglm.com)
Database Technologist
Northrop Grumman IT
Defense Enterprise Solutions
La Mesa, CA  =20
619-460-2281 x 237





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


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.


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