commit
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -2,7 +2,7 @@ | ... | @@ -2,7 +2,7 @@ |
| 2 | port=8090 | 2 | port=8090 |
| 3 | lsof -i :$port | awk '{print $2}'> tmp | 3 | lsof -i :$port | awk '{print $2}'> tmp |
| 4 | pid=$(awk 'NR==2{print}' tmp); | 4 | pid=$(awk 'NR==2{print}' tmp); |
| 5 | echo "$pid" | 5 | #echo "$pid" |
| 6 | if [ -n "$pid" ]; then | 6 | if [ -n "$pid" ]; then |
| 7 | kill -9 $pid; | 7 | kill -9 $pid; |
| 8 | echo "success" | 8 | echo "success" | ... | ... |
-
Please register or sign in to post a comment