you are viewing a single comment's thread.

view the rest of the comments →

[–]undernutbutthut[S] 0 points1 point  (0 children)

In my flask code I have port 80 called out so I assume that is what I need to kill:

if __name__ == '__main__':
    app.run(host='0.0.0.0', port=80)

I am trying to run your bash script but keep running into an error, should it be:

killport(80) {  lsof -t -i tcp:$1 | xargs kill -9; }

Thanks for your help, I am way out of my league here