Skip to content

Instantly share code, notes, and snippets.

@rjsvaljean
Created February 18, 2016 19:51
Show Gist options
  • Select an option

  • Save rjsvaljean/155220be2f4e8e600623 to your computer and use it in GitHub Desktop.

Select an option

Save rjsvaljean/155220be2f4e8e600623 to your computer and use it in GitHub Desktop.
#!/bin/sh
killSBT() {
SBT_PID=$(jps | grep sbt-launch | awk '{print $1}')
if [ -z "$SBT_PID" ]
then
echo SBT session not found
else
echo Killing SBT: $SBT_PID && kill -9 $SBT_PID
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment