shell script (continuous pinging and actions when host is up)
Hi guys, i have small problem.
I need help for one small shell script. here are actions for script:
1. script must ping one host (192.168.3.111)
2. if 20 pings of host are DOWN (no reply) , script waits for new UP state.
3. when host became ACTIVE and UP, waits for 20 seconds end executes some other script (some videolan reload script)
4. everything goes again and againg ... continuosly waiting for down , up and executing...