|
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 |