Script para saber si un equipo esta encendido
#!/bin/bash
while : do if $(ping -c3 -i 2 192.168.X.X > /dev/null);then echo "Encendido" else echo "Apagado" fi sleep 5 done
Verifica cada 5 segundos. Si quieres cambiar el tiempo, modifica sleep 5.
This work is under a Attribution-NonCommercial-NoDerivatives 4.0 International license.
Will you buy me a coffee?
You can use the terminal.
ssh customer@andros.dev -p 5555