in reply to Perl 5.10.1 - compare external program output with a list of known error codes
The problem is that the external program output from pgp operations usually contain multiple lines like below
pgp:encrypt (3157:current local time aa-bb-cc) /xxxx:open keyrings (1006:public keyring) /xxxx:open keyrings (1007:private keyring) yyyyy:encrypt (1030:key added to recipient list) yyyyy:encrypt (1050:key added as signer) sample.txt:encrypt (3090:operation failed, file not found)
Here, the last line is what matters to me and this is what needs to be compared to the error strings I mentioned in my original post. I am still unable to successfully catch the appropriate errors.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl 5.10.1 - compare external program output with a list of known error codes
by dasgar (Priest) on Sep 19, 2016 at 18:23 UTC | |
|
Re^2: Perl 5.10.1 - compare external program output with a list of known error codes
by stevieb (Canon) on Sep 19, 2016 at 19:25 UTC |