Re: Crypt::GPG won't decrypt file...rewrote it to use system, but only partially works

2006-06-30 Thread Mumia W.
RICHARD FERNANDEZ wrote: [...] It decrypts my file successfully. But if I break up the arguments like it says in the doco, like so: my @gpg_command = ("/usr/bin/gpg", "--decrypt", $encrypted, ">", $decrypted, "2> /dev/null"); AFAIK, you can't use "2> file" to do output redirection when

RE: Crypt::GPG won't decrypt file...rewrote it to use system, but only partially works

2006-06-30 Thread RICHARD FERNANDEZ
> I would suggest giving GnuPG::Interface a go because it > handled calling out to 'gpg' most "correctly". Meaning it > uses the status-fd, logger-fd options properly which is the > preferred way to call gpg in an automated fashion. > > Good luck, > > http://danconia.org > Thank you! I will

Re: Crypt::GPG won't decrypt file...rewrote it to use system, but only partially works

2006-06-30 Thread Wiggins d'Anconia
RICHARD FERNANDEZ wrote: > I re-wrote the decryption routine to use system instead of Crypt::GPG, > and came across another puzzle: > > my @gpg_command = ("/usr/bin/gpg --decrypt $encrypted > > $decrypted 2> /dev/null"); > system(@gpg_command) == 0 or warn "system @gpg_command failed:

RE: Crypt::GPG won't decrypt file...rewrote it to use system, but only partially works

2006-06-30 Thread RICHARD FERNANDEZ
I re-wrote the decryption routine to use system instead of Crypt::GPG, and came across another puzzle: my @gpg_command = ("/usr/bin/gpg --decrypt $encrypted > $decrypted 2> /dev/null"); system(@gpg_command) == 0 or warn "system @gpg_command failed: $!"; works. It decrypts my file

Crypt::GPG won't decrypt file

2006-06-29 Thread RICHARD FERNANDEZ
Hi folks, I have the following function: sub lbx_decrypt { my $encrypted = shift or die "No file passed in to lbx_decrypt for decryption?\n"; my $decrypted = substr $encrypted, 4; $decrypted .= '.zip'; my $gpg = new Crypt::GPG; $gpg -> gpgbin('/usr/bin/gpg'); open CIPHERTXT