aboutsummaryrefslogtreecommitdiff
path: root/top.sh
diff options
context:
space:
mode:
Diffstat (limited to 'top.sh')
-rwxr-xr-xtop.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/top.sh b/top.sh
new file mode 100755
index 0000000..55288b8
--- /dev/null
+++ b/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