Created
December 22, 2014 07:53
-
-
Save nguyendangminh/eb9d29ca87ab1c47e4c0 to your computer and use it in GitHub Desktop.
Gist for Bash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get path of directory in which the script is stored | |
DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd ) | |
echo $DIR | |
# Use content of a file as argument | |
kill -9 $(<./thin.pid) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment