emjga1 has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks
but not sure how ?.
The following snipet of code , works fine
But how can I trap the exit code of the program check_nrpe
Which could be 0 , 1 , 2 or 254
I think I should be using fork or waitpidopen(CMD, "/local/nagios/libexec/check_nrpe -H $host|") or dir $!; @CMD=<CMD>; close(CMD);
but not sure how ?.
Thanks
Matt
Back to
Seekers of Perl Wisdom