#!/bin/sh # TimeOutNotify.sh # 2007-11-06 # Chieh Cheng # http://www.CynosureX.com/ # GNU General Public License (GPL) Version 2, June 1991 timeOutPeriod=30 # specified in minutes notifySafetyNet=5 # specified in minutes sleepMinutes=`expr ${timeOutPeriod} - ${notifySafetyNet}` sleepSeconds=`expr ${sleepMinutes} \* 60` echo "Time out notify function installed; will notify you in ${sleepMinutes} minutes." sleep $sleepSeconds echo "Only ${notifySafetyNet} minutes left before being logged out of the system!" echo "Time to save your work at the next opportunity."