On 1/3/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I am using gpg within a Perl program to decrypt some data files. In order > to decrypt a passphrase has to be passed to the gpg binary and I choose to > use fileno function but it is hanging waiting on the passphrase.
It's generally difficult or impossible to "type" to a program that's waiting for a password or passphrase, because such programs usually access the I/O at a relatively low level. Fortunately, in this case, there's an easy fix. You can use the Crypt::GPG module: http://search.cpan.org/~agul/Crypt-GPG-1.52/GPG.pm Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>