Posted on 2007-08-21 13:25:16-07 by richyt
GnupPG error when running in Cron Job
I am getting an error when trying to encrypt a file using the GnuPG module in a cron job. This is a simple script to download, encrypt and sign and then upload the file to another location.
protocol error: expected SHM_GET_XXX got at /home/cryptman/bin/BofAPPHMS.pl line 96
The line itself is
$gpg -> encrypt ( plaintext => $localfile, output => $cryptfile, armor => 1, recipient => $public_key_loc, sign => 1, 'local-user' => $sign_key_loc, passphrase => $sign_key_pass );
The program runs fine when run directly from the commandline. Another issue I've noticed (in another program) is that the module spits stuff to stderr even when I have redirected stdout and sterr to /dev/null. This is more annoying than a show-stopper like the above issue. Any advice much appreciated Thanks Rich
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.