diff options
author | Determinant <ted.sybil@gmail.com> | 2014-12-27 13:29:20 +0800 |
---|---|---|
committer | Determinant <ted.sybil@gmail.com> | 2014-12-27 13:29:20 +0800 |
commit | 30c896841c65c78cb4cf048c0c26c8e62ee0cf05 (patch) | |
tree | 5fb076c5a373b3ffa2e25842f47fe2e64dd7b6bc /top.sh |
init
Diffstat (limited to 'top.sh')
-rwxr-xr-x | top.sh | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |