Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

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 ( [id://1172163]=note: print w/replies, xml ) Need Help??


in reply to Re: Perl 5.10.1 - compare external program output with a list of known error codes
in thread Perl 5.10.1 - compare external program output with a list of known error codes

Since you're using backticks, you're only capturing the STDOUT output of the PGP commands, but the error messages that you're wanting to check possible could be sent to STDERR instead. You could redirect STDERR to STDOUT by adding 2>&1 to the end of the PGP commands. Another alternative is to use Capture::Tiny, which will capture STDOUT, STDERR and exit code for external commands.

  • Comment on Re^2: Perl 5.10.1 - compare external program output with a list of known error codes
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1172163]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-04-23 12:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found