publish.sh 234 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 #!/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 & nohup npm run dev >/dev/null 2>&1 &