Is there a program which sets an alarm off if the internet connection is lost...

Is there a program which sets an alarm off if the internet connection is lost? Some assholes are messing with the switch outside and I want to get them in the act but they are usually doing it when Im sleeping in the early hours.
pic unrelated

Other urls found in this thread:

automateitapp.com/
twitter.com/NSFWRedditImage

Easiest way is probably using automateitapp.com/ or tasker

Write a script that tries pining google.com or something every minute. Log it.

I dont have a phone with android.

how do i make an alarm set off when google does't respond also I dont know how to write scripts

What third world shithole do you live in that allows people to fuck with your internet outside?

bulgaria

Dumb ass, slav ass, negra motherfakka, put the switch in a box with a lock!

#!/bin/bash
while true; do
ping -c1 google.com
if [ ! $? == 0 ]; then
ffplay alarm.wav
sleep 10
fi
sleep 5
done

is this in python?

Do I write this in the linux karnel ?

Look at the first line. Duh.

This code on a Netbook or other small laptop hooked up to a pair of speakers will do the trick.

That is, if you know how to run a script...

It's Shell / Bash (Linux)

It's Bash. Bash is like Powershell where it's a scripting language too.

>on a Netbook or other small laptop
even just an rpi nano is more than enough

yes, inside the endosperm.

>(Linux)
GNU, actually. bash is a GNU program

linux typically ships with bash, but it's not linux-specific, even macos ships with bash as well (last i checked)

>linux typically ships with bash
linux distros* i should say
linux alone doesn't ship with bash

...I wonder how they managed to sterilize that substrate...

kek, AMD makes it easy.

Assange pls

Move the switch indoors nigga.

Camp outside with a shotgun full of either rock salt, rubber bullets or glass. Your choice, it won't kill them and teach them the lesson of pain.

set up a bomb that links up to your cable,

once it loses power/signal it blows up

ezpz

Is that lisp?

How the FUCK did that happen?