Code

Exit code added (604837 - Lachlan Cameron-Smith)
authorTon Voon <tonvoon@users.sourceforge.net>
Wed, 29 Jan 2003 05:27:20 +0000 (05:27 +0000)
committerTon Voon <tonvoon@users.sourceforge.net>
Wed, 29 Jan 2003 05:27:20 +0000 (05:27 +0000)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@264 f882894a-f735-0410-b71e-b25c423dba1c

contrib/check_dns_random.pl

index 787d464413bce1adec9c5641fb3023e4a50ffe43..4bed4120a30d0adb24973802e1fd854b226155bb 100644 (file)
@@ -55,9 +55,8 @@ $wc =~ s/domains//g;
 $x = rand $wc;
 ($z,$y) = split(/\./,$x);
 
-print `$check $data[$z] $host`;
-
-
+system($check, $data[$z], $host);
+exit ($? / 256);
 
 sub usage
 {