publish.sh 197 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 #!/bin/sh port=8090 lsof -i :$port | awk '{print $2}'> tmp pid=$(awk 'NR==2{print}' tmp); #echo "$pid" if [ -n "$pid" ]; then kill -9 $pid; echo "success" fi nohup npm run dev > client.log &