From 4c7c9dcdfd05a2d9648756c0da5c68588929ba5d Mon Sep 17 00:00:00 2001 From: Determinant Date: Mon, 29 Dec 2014 00:34:16 +0800 Subject: restructured the project --- examples/top.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 examples/top.sh (limited to 'examples/top.sh') diff --git a/examples/top.sh b/examples/top.sh new file mode 100755 index 0000000..55288b8 --- /dev/null +++ b/examples/top.sh @@ -0,0 +1,8 @@ +#!/bin/bash +export JMNAME='TOP' +export JTYPE='listgraph' +function trigger { + top -bn1 -S | tail -n +8 | head -n 10 | awk '{ print $1, $2}' | $CLIENT --alter "$JID" +} +export -f trigger +./monitor_daemon.sh -- cgit v1.2.3