#!/bin/csh -f

# Set a message to be mailed after time given in argument in the form of h:m
# where h is hours and m is minutes; either can be omitted, but the colon is
# required.

set hours = 0`echo $1 | cut -d: -f1`
set minutes = 0`echo $1 | cut -d: -f2`

@ seconds = 60 * $minutes + 3600 * $hours

sleep $seconds
echo 
mail -s "$*" rig </dev/null
echo 
