Advertisement
Sergio_Istea

while

May 17th, 2021
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. i=0
  4.  
  5. while [ $i -le 10 ];do
  6.  
  7. clear
  8. echo "Monitor de conexiones TCP, CTRL-C para salir."
  9. ss -tp
  10. sleep 0.25
  11. ((i++))
  12. done
  13.  
  14. echo ""
  15.  
  16. echo "Se termino el programa, el contador quedo en $i"
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement