1 2 3 4 5 6 7 8 9 10 11 |
#!/bin/bash url="aqui_tu_url"; response=$(curl -s -I -L $url | grep HTTP); status=${response#* }; status=${status:0:3}; if [ "$status" != "200" ] then // acciones a efectuar fi |
1 2 3 4 5 6 7 8 9 10 11 |
#!/bin/bash url="aqui_tu_url"; response=$(curl -s -I -L $url | grep HTTP); status=${response#* }; status=${status:0:3}; if [ "$status" != "200" ] then // acciones a efectuar fi |