Kill a Unix / OSX Process that is running on a port [ $1 ] || { echo "Usage: $0 <portno>" exit 1 } lsof -P | grep ':'$1 lsof -P | grep ':'$1 | awk '{ print $2}' | xargs kill -9 Share this:TwitterFacebookLinkedInPocketPinterestPrintTumblrRedditEmailLike this:Like Loading... Related Leave a Reply Cancel reply Enter your comment here... Fill in your details below or click an icon to log in: Email (required) (Address never made public) Name (required) Website You are commenting using your WordPress.com account. ( Log Out / Change ) You are commenting using your Twitter account. ( Log Out / Change ) You are commenting using your Facebook account. ( Log Out / Change ) Cancel Connecting to %s Notify me of new comments via email. Notify me of new posts via email. Δ
Leave a Reply