D. J. Birkett wrote:
> D. J. Birkett wrote:
> 
>> Chris Devers wrote:
>>
>>> On Wed, 18 May 2005, D. J. Birkett wrote:
>>>
>>>
>>>> I'm trying to call gpg externally
>>>
>>>
>>>
>>>
>>> Why? Can't you just use something like Crypt::GPG?
>>>
>>>     <http://search.cpan.org/~agul/Crypt-GPG-1.52/GPG.pm>
>>>
>>
>> This script is to be run from an nfs mount on many systems, so it has
>> to run with the modules installed as standard with perl.
> 
> 
> Well I've managed to do it with the Expect module, but then realised
> that this doesn't come a standard with most perl distributions.  I must
> have previously installed it through CPAN.  So I'm back to square 1 -
> how might I do this with just the modules included in a standard perl
> install?
> 

IIRC Expect just manipulates STDIN/STDOUT and that should be what you
are messing with wrt GPG. In this case assuming you are working on a
relatively new Perl you might check,

perldoc IPC::Open3

GPG can be a nightmare to work with in this respect, I have done it (it
wasn't pretty ;-)) but not importing keys and setting trust levels.  For
additional reading on the subject you might check:

perldoc perlipc

HTH, good luck,

http://danconia.org

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to