summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b88f9d8)
raw | patch | inline | side by side (parent: b88f9d8)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 13 May 2008 15:05:30 +0000 (17:05 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 13 May 2008 15:05:30 +0000 (17:05 +0200) |
contrib/cussh.pl | patch | blob | history |
diff --git a/contrib/cussh.pl b/contrib/cussh.pl
index 3fa410518ef43749eea2c88ce7f93587c47c268d..f95d54d2010eac76bd1e0a134d17b23fdd9fe383 100755 (executable)
--- a/contrib/cussh.pl
+++ b/contrib/cussh.pl
my $sock = Collectd::Unixsock->new($path);
my $cmds = {
+ HELP => \&cmd_help,
PUTVAL => \&putval,
GETVAL => \&getval,
FLUSH => \&flush,
=over 4
+=item B<HELP>
+
+=cut
+
+sub cmd_help {
+ print <<HELP;
+Available commands:
+ HELP
+ PUTVAL
+ GETVAL
+ FLUSH
+ LISTVAL
+
+See the embedded Perldoc documentation for details. To do that, run:
+ perldoc $0
+HELP
+ return 1;
+} # cmd_help
+
=item B<GETVAL> I<Identifier>
=cut