Bugfix
[infodrom/icinga-plugins] / check_uucp
index 3c9c28f..0526dd6 100755 (executable)
@@ -56,7 +56,7 @@ sub uustat
     my $cmd = sprintf('/usr/bin/uustat -s %s %s', $host,
                      $hours ? '-o ' . $hours : '');
 
-    open my $prg, '|-', $cmd || return;
+    open my $prg, '-|', $cmd || return;
     my @list;
     while (<$prg>) {
        push @list, $_;