I had the same problem and I wrote this shell script that kills all existing node processes:
#!/bin/bash echo "The following node processes were found:" ps aux | grep " node " | grep -v grep nodepids=$(ps aux | grep " node " | grep -v grep | cut -c10-15) echo "OK, so we will stop these process/es now..." for nodepid in ${nodepids[@]} do echo "Stopping PID :"$nodepid kill -9 $nodepid done echo "Done"
After that, as a shell script file (xxx.sh), you can add it to your PATH as described here .
(Note that this will kill all processes with a "node" in it except grep own, so I assume that in some cases it can also kill some other processes with a similar name)
Crocodile May 22 '11 at 17:41 2011-05-22 17:41
source share