#!/bin/sh ADDRESS=netdump@example.com mail -s "[netdump] $1 rebooted" $ADDRESS <<_EOF The machine with IP $1 has been rebooted. Crash dump written to $2 _EOF