Advertisement
paperline27

./ping

Jan 19th, 2024
1,272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.17 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. if [ -z "$1" ]; then
  4.   echo "contoh: $0 9.9.9.9"
  5.   exit 1
  6. fi
  7.  
  8. host="$1"
  9.  
  10. ping -c 100 "$host"
  11.  
  12.  
  13.  
  14. #penggunaan>>
  15. #chmod +x ping
  16. #./ping bing.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement