#!/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




syntax highlighted by Code2HTML, v. 0.9.1