Hey, i was wondering how to write a shell script that would detect if my network was up, then run a command i had. Here's how i would imagine it to work:
It would ping 192.168.0.1
If up: do nothing
if down: while true; do sleep $(($RANDOM/500)) && beep -f $((RANDOM/10)) -l $(($RANDOM/100)) ; done
And i'd stick it in the cron folder that runs it every ten minutes. Thanks for any help. Also, where is that folder?