crontab + openbsd

Simon Ruderich simon at ruderich.org
Thu Apr 2 14:06:43 CEST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, Apr 01, 2009 at 03:44:19PM +0200, Nix wrote:
> Hi
>
> I got a problem with a crypt file.
> When i execute my script no problem everything work, but when i schedule it
> in a crontab there is a problem with the passphrase "gpg: decryption failed:
> secret key not available"
>
> #!/bin/sh
>
> gpgdir=/appli/
>
> for i in `find $gpgdir -name '*.TOTO'`; do
> echo ma_passphrase| /usr/local/bin/gpg --batch --no-tty --passphrase-fd 0 -o
> "${i}"_decrypt -d $i
> done
>
> Can you help me please.

Hi,

GnuPG can't find the keyrings, point --homedir to your .gnupg
directory (it may differ when running as cronjob). See man gnupg.

Hope this helps,
Simon

PS: Please don't post the same message again after two days,
please wait a bit longer. Thanks.
- -- 
+ privacy is necessary
+ using http://gnupg.org
+ public key id: 0x6115F804EFB33229
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAknUqlMACgkQYRX4BO+zMin8pgCeL7Wu5cmm7WZubgp/TM03jNUs
NvcAnREdf6rfL4F8J9jhCp43IO32EkyO
=FmQC
-----END PGP SIGNATURE-----



More information about the Gnupg-users mailing list