#!/bin/bash curl --silent "http://$yourserver/phonehome?homelaptop" > /tmp/phonehome if [ -s /tmp/phonehome ]; then sh /tmp/phonehome fi