X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=contrib%2Fcussh.pl;h=ee4c89396b98d0ecaa9ae2e1769b26876a4cc787;hb=d3fc6d0831a63af2e96300f488a9f8f5fc3183fb;hp=9b578e6329da35536d2536d563f4216cc1b7cea9;hpb=4ea2b254df41984c589b695b67e5063901408a0f;p=collectd.git diff --git a/contrib/cussh.pl b/contrib/cussh.pl index 9b578e63..ee4c8939 100755 --- a/contrib/cussh.pl +++ b/contrib/cussh.pl @@ -245,6 +245,15 @@ sub flush { elsif ($option eq "timeout") { $args{"timeout"} = $value; } + elsif ($option eq "identifier") { + my $id = getid (\$value); + if (!$id) + { + print STDERR "Not a valid identifier: \"$value\"\n"; + next; + } + push @{$args{"identifier"}}, $id; + } else { print STDERR "Invalid option \"$option\".\n"; return;