daily pastebin goal
63%
SHARE
TWEET

Untitled

a guest Jan 22nd, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. while read p; do
  3.   ping -c 1 $p -W 1 > /dev/null
  4.   if [ $? == 0 ]; then
  5.     echo $p ok
  6.   else
  7.     echo $p nok
  8.   fi
  9. done <pl.txt
  10.  
  11.  
  12. #########################
  13. # Poniżej przykładowy plik pl.txt
  14. 8.8.8.8
  15. 4.1.1.250
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top