#!/bin/sh LOCALHOST=`hostname` echo -e "It's time to run fsck on ${LOCALHOST}:\n\nsudo shutdown -Fr now" | mail -s "fsck reminder" root