Answer the question
In order to leave comments, you need to log in
ping implementation in bash?
Good afternoon, there is a ping implementation in bash
#!/bin/bash
echo -n "Введите сеть которую вы хотите просканировать 10.1.xx.{1..255}"
read p_set
is_alive_ping()
{
ping -c 1 $1 > /dev/null
[ $? -eq 0 ] && echo Оборудование с IP: $i находиться в сети.
}
for i in 10.1.$p_set.{1..255}
do
is_alive_ping $i & disown
done
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question