Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ip=192.168.1.21
- ping -c1 "$ip" > /dev/null 2>&1 && { echo $(date +%s) - Hay conectividad; echo "Iniciando backup remoto"; } || { echo $(date +%s) - "NO hay conectividad"; echo "Iniciando backup local"; }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement