projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
contrib/cussh.pl: Add the `identifier' option to the `flush' command.
[collectd.git]
/
contrib
/
cussh.pl
diff --git
a/contrib/cussh.pl
b/contrib/cussh.pl
index
6da2856
..
48f5e93
100755
(executable)
--- a/
contrib/cussh.pl
+++ b/
contrib/cussh.pl
@@
-223,6
+223,15
@@
sub flush {
elsif ($option eq "timeout") {
$args{"timeout"} = $value;
}
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;
else {
print STDERR "Invalid option \"$option\".\n";
return;