Scripting and CGI use of GPG

phil@Stimpy.netroedge.com phil@Stimpy.netroedge.com
Wed, 1 Sep 1999 09:51:26 -0700 (PDT)



On Wed, 1 Sep 1999, Petr Danecek wrote:


>
> > things like GPG keys. But, GPG still wasn't finding them. Using the
> > "--homedir" parameter from within the script didn't work for some strange
> > reason (it worked from the command line...)! I also noticed that it
>[..]
> Hmm, --homedire switch works just fine in my scripts.
> Petr
Yeah, I did this: $messageProcessor->{extraArgs} = [ '--homedir /home/nobody/.gnupg' ]; When I should have done this: $messageProcessor->{extraArgs} = [ '--homedir', '/home/nobody/.gnupg' ]; I have it all working now, thanks. The only strange problem which I had on my RedHat6.0 machine (which Frank couldn't reproduce on his FreeBSD box) was a problem which produces repetitive output if a print ending in a '\n' wasn't before calling: $success = $messageProcessor->cipher( \@message); I.e., this works as expected: print "hi there\n"; $success = $messageProcessor->cipher( \@message); This does not: print "hi there"; $success = $messageProcessor->cipher( \@message); The output look like: [...]hi therehi there[...] This seems to be a wacky bug in the Linux Perl provided by RedHat from what I can tell. It isn't hard to avoid once it is known, though. Thanks! Phil ------------------------------------------------------------ Philip Edelbrock -- IS Manager -- Edge Design, Corvallis, OR phil@netroedge.com -- http://www.netroedge.com/~phil PGP F16: 01 D2 FD 01 B5 46 F4 F0 3A 8B 9D 7E 14 7F FB 7A