At 08:21 AM 3/15/00 -0800, you wrote:
>
>anyone had any luck with remind.  trying to run and
>output isn't outputting.  i create my MSG statement
>and it is not outputting to standard output.  anyone
>out there use remind, maybe give me a couple simple
>pointers.
>
>matt
>
Hi Matt,
        Here is the cron job I use to generate a daily reminder
e-mail.  Maybe it will help...

Mikkel

# Set the following variables as appropriate for your system
REMIND=/usr/local/bin/remind
MAIL=/bin/mail
RM="/bin/rm -f"

REMFILE=/tmp/RemFile.$$

# Scan each user's directory for a .reminders file
for i in $USERS
do
HOME=`grep \^$i: /etc/passwd | awk -F: '{print $6}'`
   if [ -r $HOME/.reminders ]; then

      $REMIND -u$i -h -r -q -iremind_all=1 $HOME/.reminders < /dev/null >
$REMFILE
      if [ -s $REMFILE ]; then
         $MAIL -s "Reminders" $i < $REMFILE
      fi
      $RM $REMFILE
   fi
done



-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to