Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re^2: Getting Started with GnuPG and GPG

by derby (Abbot)
on Mar 14, 2012 at 13:09 UTC ( #959565=note: print w/replies, xml ) Need Help??

in reply to Re: Getting Started with GnuPG and GPG
in thread Getting Started with GnuPG and GPG

Wow! I don't know what's more amazing ... a question about a decade old post, the fact that the monastery is still here after ten years, or that I'm still here to answer it.

The problem is GPG has not been updated in a dozen years but gpg has. Looks like the underlying options to the gpg command

--batch --no-comment --no-version
are no longer sufficient to keep non-error messages off of STDERR. GPG interpets anything on STDERR as an error and will not return the output
$this->error($error) and return if $error; return $output;

So ... the real solution is to use a newer module (maybe GnuPG -- but I haven't really looked into it). But ... if you're feeling hacky, you can always modify GPG to use the --quiet option and that should prevent information on STDERR from blocking the decrypt.


Replies are listed 'Best First'.
Re^3: Getting Started with GnuPG and GPG
by jaf0faj (Novice) on Mar 17, 2012 at 00:58 UTC

    Excellent! I did hack the by inserting the --quiet option and gave it a brilliantly. Thanks again for this. Now, if only I could get Crypt::OpenPGP to work....

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://959565]
[Cosmic37]: hello perly kings and queens
[jedikaiti]: 'ello Monks
[Cosmic37]: and monkeys too...
[Cosmic37]: is anyone doing machine learning with Perl?
[Cosmic37]: I was using gneural code in C and it was interesting but did not have back propagation for neural networks
[corenth]: Cosmic, poking at it, but not really.
[Cosmic37]: I read that its possible to use the FANN library with Perl so I might try that now...
[corenth]: i have a question. I used map{ blah();blah(); blah();}@stuff; and it used up a ton of memory vs. the for(@stuff){} equivalent. What gives? (if anyone knows)
[Cosmic37]: FANN also has LGPL license which I like and its supposed to be quite a capable library from what I read
[corenth]: Cosmic, that sounds interesting. What is FANN (I could search it if I weren't so lazy about it)?

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2018-02-20 18:15 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (274 votes). Check out past polls.