Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- while read p; do
- ping -c 1 $p -W 1 > /dev/null
- if [ $? == 0 ]; then
- echo $p ok
- else
- echo $p nok
- fi
- done <pl.txt
- #########################
- # Poniżej przykładowy plik pl.txt
- 8.8.8.8
- 4.1.1.250
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement