Skip to content

Instantly share code, notes, and snippets.

@coderaiser
Created November 28, 2012 16:07
Show Gist options
  • Save coderaiser/4162221 to your computer and use it in GitHub Desktop.
Save coderaiser/4162221 to your computer and use it in GitHub Desktop.
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'
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment