Molloc has asked for the wisdom of the Perl Monks concerning the following question:
...but when gpg promts for a passphrase, the dictionary word doesn't appear until I hit enter. How can I get my word to the passphrase prompt? Thanks, Seth Jackson.#!/usr/bin/perl -w use strict; open (DICT ,"/usr/share/dict/linux.words") || die "can't read +dictionary: $!\n"; while (<DICT>) { my @tab=split("\n",<DICT>); for ( my $cnt = 0 ; $cnt < @tab ; $cnt++ ) { system ('gpg ~/file.gpg'); sleep (2); print $tab[$cnt], "\r"; #also tried 'system ($tab[$cnt])', no d +ice. } } close DICT;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: GPG w/o modules question
by sgifford (Prior) on Jul 19, 2003 at 06:10 UTC | |
by Molloc (Initiate) on Jul 19, 2003 at 14:32 UTC | |
by sgifford (Prior) on Jul 19, 2003 at 16:12 UTC | |
by fglock (Vicar) on Jul 20, 2003 at 03:10 UTC | |
|
Re: GPG w/o modules question
by sauoq (Abbot) on Jul 19, 2003 at 09:23 UTC | |
|
Re: GPG w/o modules question
by vek (Prior) on Jul 19, 2003 at 07:28 UTC | |
by Molloc (Initiate) on Jul 19, 2003 at 14:42 UTC | |
|
Re: GPG w/o modules question
by bobn (Chaplain) on Jul 19, 2003 at 06:13 UTC | |
|
Re: GPG w/o modules question
by naChoZ (Curate) on Jul 19, 2003 at 12:31 UTC |