Advertisement
sergio_educacionit

while

Apr 29th, 2025
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.38 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3.  
  4. # Variable incremental
  5.  
  6. i=1
  7.  
  8. while [ $i -le 5 ];do
  9.  
  10.     echo "Valor de 'i': $i"
  11.    
  12.     #i=$((i + 1))
  13.    
  14.     ((i++))
  15.  
  16. done
  17.  
  18.  
  19.  
  20. while systemctl is-active mariadb > /dev/null; do
  21.  
  22.    
  23.     echo "] El servcio mariadb esta activo, detengalo para prosegir"
  24.     sleep 1
  25.     clear
  26.     echo "]"
  27.     sleep 1
  28.     clear
  29.  
  30.    
  31.  
  32. done
  33.  
  34.  
  35. while
  36.  
  37.  
  38.  
  39.  
  40. echo "Se prosigue con el script."
  41.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement