Well, its nice to see that you found a solution, Ram.
Generally speaking, crontab runs with a different environment than the one that is set for your shell (e.g. bash). So various things, like environment variable values, have to be provided, otherwise commands that (implicitly) refer to those variables will not function as expected.
Of course since crontab can run whilst you are not logged in, it doesn't have an associated teletype, so the linux device /dev/tty would not be available to gpg.
A knock-on effect of the changes in environment values is that is usually best to specify full paths in your scripts.
I wonder if the error messages were coming to you via your email.
|