Running GPG from a cron or application
Last updated: 21/02/2012 20:50:01
gpg is normally run interactively and expects a terminal to be present for its output. If gpg is run non-interactively via a cron or some code the following error will be generated:
gpg: cannot open `/dev/tty': No such device or address
To resolve this problem just add the "--no-tty" option to your gpg command line.