aboutsummaryrefslogtreecommitdiff
path: root/examples/count.sh
diff options
context:
space:
mode:
Diffstat (limited to 'examples/count.sh')
-rwxr-xr-xexamples/count.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/count.sh b/examples/count.sh
new file mode 100755
index 0000000..3db505f
--- /dev/null
+++ b/examples/count.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+export JMNAME='COUNTER'
+export JTYPE='linegraph'
+i=1
+function trigger {
+ $CLIENT --add "$JID" "$i"
+ let i=i+10000
+}
+export -f trigger
+./monitor_daemon.sh