#!/bin/sh

dir=$(dirname $0)
job=$(basename $dir)



send_report()
{
if [ "$(which smail)" ] ; then
cat <<END | sendmail -i root
To: root
From: anacron@`hostname` ("Anacron")
Subject: Anacron: $job

This is a demo $job report. You can add a new $job job
adding a script in the directory /etc/$job 

Sincerely,
your Anachronistic daemon.
	-Anacron, at `hostname`
END
fi
}

# MAIN

send_report
