[bash]#!/bin/sh HOST="silveiraneto.net" if ping -c 1 $HOST > /dev/null then echo your command fi [/bash] replace silveiraneto.net for your desired hostname or ip ping sends…
[bash]#!/bin/sh HOST="silveiraneto.net" if ping -c 1 $HOST > /dev/null then echo your command fi [/bash] replace silveiraneto.net for your desired hostname or ip ping sends…