Scheduler issue

David Shaw dshaw at
Mon Feb 10 02:48:01 CET 2003

On Sun, Feb 09, 2003 at 12:25:31PM -0800, jmathew at wrote:
> Hi All,
> I have two shell scripts one which encrypts and the other which 
> decrypts using GPG.  The other party with whom I am sending and 
> receiving these files uses PGP and has given me a PGP key to 
> encrypt.
> Both the scripts work perfectly when I call them from command 
> prompt.  But when I call them using a scheduler which logs in as 
> root and calls the shell scripts they fail.  The failure is at the GPG 
> call both for decryption and encryption.  I checked up the 
> environment variable and they are fine.

We'd need to see what the error message you got was...

99% of the time, the "it works from the command line, but not when
called from cron" problem is due to something simple like different


   David Shaw  |  dshaw at  |  WWW
   "There are two major products that come out of Berkeley: LSD and UNIX.
      We don't believe this to be a coincidence." - Jeremy S. Anderson

More information about the Gnupg-devel mailing list