Linux
Shell Script TIPs
alwaysu012
2024. 11. 29. 11:42
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}"'