#! /bin/zsh ## ~/.zsh/be-task ps-core () { local core=$1 ps -eo psr,pid,stat,comm | grep "^ $core " } ps-be () { ps-core $BE_CORE } ps-cc () { ps-core $CRITICAL_CORE } monitor-processes () { local core=$1 watch -t -n 0.1 "ps -eo psr,pid,stat,comm | grep '^ $core '" } monitor-be () { monitor-processes $BE_CORE } monitor-cc () { monitor-processes $CRITICAL_CORE } monitor-be-stress () { watch -t -n 0.1 "ps -eo psr,pid,comm | grep -e '^ $BE_CORE ' | grep stress" } monitor-be-status () { be-init watch -t -n 0.1 cat $STATE_FILE $TASK_FILE } monitor-tty () { watch -t -n 0.1 "ps -eo tty,pid,comm,state | grep 'pts/$1 '" } alias monitor=monitor-tty