Update tracert.sh
This commit is contained in:
parent
fa5c43734c
commit
cebfaa4acd
@ -39,6 +39,7 @@ i=1
|
|||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
ping=$(ping -t $i -c 1 -W $timeout $host | grep -E "From|from")
|
ping=$(ping -t $i -c 1 -W $timeout $host | grep -E "From|from")
|
||||||
|
[[ $? > 0 && $i == 1 ]] && exit
|
||||||
if [[ $(echo $ping | cut -d ' ' -f 1) == "64" ]]
|
if [[ $(echo $ping | cut -d ' ' -f 1) == "64" ]]
|
||||||
then
|
then
|
||||||
#Last hop in route
|
#Last hop in route
|
||||||
|
Loading…
x
Reference in New Issue
Block a user