有關 cluster 的 kill process的問題? - Linux

Table of Contents


在cluster跑程式,難免會有一些process掛點,需要用 kill 殺掉

除了一台台登入執行外,有沒有什麼比較有效率的方法

只有一台是好解決,找出user和執行中程式的PID

ps aux | grep "username" |grep "process" | awk '{print $2}' |xargs kill -9


可是多台機器有什麼方法呢?

謝謝大家的指教

--

All Comments

Erin avatarErin2009-10-17
pdsh