#!/bin/sh ADDRESS=netdump@example.com mail -s "[netdump] $1 crashed" $ADDRESS <<_EOF The machine with IP $1 crashed. Writing crash dump to $2 _EOF # The script may return a non-zero value if it determines # that the dump is not interesting. The server will then just # tell the client to immediately reboot. exit 0