#!/bin/sh . /opt/hu.dwim.home/workspace/hu.dwim.home/bin/environment.sh ERROR_LOG_FILE="${DWIM_LOG_DIRECTORY}/error.log" #if [ -s ${ERROR_LOG_FILE} ]; then # head -2000 ${ERROR_LOG_FILE} | mail --subject "hu.dwim.home error log" admin@dwim.hu #fi