#!/bin/bash

date >> off.log
czas=`date|gawk '{print $4}'`
echo $* >> off.log
cat <<XX | sendmail -t
To: #email
From: #email
Date: $(date)
Content-type: text/plain; charset=iso-8859-2
User-Agent: Mozilla Thunderbird 1.07/piio.ekg.notification

$*
@$czas
XX