aboutsummaryrefslogtreecommitdiff
path: root/top.sh
blob: 55288b80beae90d13d32bc22086b245a526e1c15 (plain) (blame)
1
2
3
4
5
6
7
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