Advertisement
Sergio_Istea

while

May 17th, 2021
32
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data Copied
Advertisement