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.
In reply to Re: Perl 5.10.1 - compare external program output with a list of known error codes
by malokam
in thread Perl 5.10.1 - compare external program output with a list of known error codes
by malokam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |