PID=$(ps -ef | grep "cm run" | grep -v grep | awk '{print $2}') && watch -n 2 "pstree -apu -h ${PID}"
alias cm_pstree='PID=$(ps -ef | grep "cm run" | grep -v grep | tr -s " " | cut -d " " -f 2) && watch -n 2 "pstree -apul -h ${PID}"'
'Linux' 카테고리의 다른 글
vim TIPs (0) | 2022.01.10 |
---|---|
psh script (0) | 2016.06.13 |
FreeNX 실행시 에러 - Error: Can't determine the location of the X display socket. (0) | 2011.01.27 |
linux 백업/복구 후 selinux 처리 (0) | 2010.10.14 |
Channel bonding (0) | 2010.10.11 |