Category Archives: #Linux

A cool idea – A built-in wall vacuum

Part of a future project !

Heart Beat shell script

I use this script to get alerts from some systems to insure they are still up.  It gives me local IP address, hostname and the WAN IP for the network.

 

#!/bin/sh
IP=”$(ip addr | grep ‘state UP’ -A2 | tail -n1 | awk ‘{print $2}’ | cut -f1 -d’/’)”
IP2=”$(curl ifconfig.co)”
HST=”$(hostname)”
CN=”$(curl ifconfig.co/country)”
CT=”$(curl ifconfig.co/city)”
HST=”$(hostname)”
echo $IP2 > /tmp/$HST
echo $IP >> /tmp/$HST
echo $CN >> /tmp/$HST
echo $CT >> /tmp/$HST

/usr/bin/sendemail -t info\@mydomain.org -f hb\@mydomain.org -u “HB from $HST” -s smtp.server -o message-file=/tmp/$HST;

Padsa Information: Linux Founder Linus Torvalds: “I Don’t Really Love Other People. I Love Computers”

Linus is my spirit engineer.

“I’m actually not a people person. I don’t really love other people. I love computers,” the legendary software engineer Linus Torvalds said in an interview with Chris Anderson at the TED conference.

[Via Padsainformation  ]