Skip to content

Commit

Permalink
check listen port running
Browse files Browse the repository at this point in the history
  • Loading branch information
ronalfei committed Mar 6, 2014
1 parent ef7285b commit e0dbd89
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions checkPortRunning.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh
pid=`ss -l4np | grep 12315 | awk -F\, '{print $2}'`
echo =$pid=
if [ -z $pid ]
then
echo "not running"
ssh -qfTnN -D *:12315 -p 443 hyena_@123.150.177.30
echo "start ok"
else
echo "already running"
fi

0 comments on commit e0dbd89

Please sign in to comment.