Skip to content

Instantly share code, notes, and snippets.

View cbou's full-sized avatar
🎯
Focusing

charles bourasseau cbou

🎯
Focusing
  • Pidoco GmbH
  • Berlin
View GitHub Profile
@coderaiser
coderaiser / c9kill.sh
Created November 28, 2012 16:07
Kill active node process in cloud9 ide
# print finded process
ProcessList=`ps ax|grep node-openshift`
echo $ProcessList
# getting pid of process
PID=`echo "${ProcessList}"|grep -v grep|awk '{print $1}'`
echo $PID
#kill it
if test ! $PID
then echo 'process not found'
else kill -9 $PID && echo 'killed process'