#!/bin/ksh
echo "Mountpoint Utilisation " > file1
echo "################################" >> file1
df -h >> file1
echo " " >> file1
echo " " >> file1
echo "Total No of Processes" >> file1
echo "#################################">> file1
ps -ef |wc -l >> file1
cat file1 | mailx -s "Total Processes and Mountpoint Utilisation in `hostname`"
mail_sysadmin@mycompany.com </dev/null
exit
-----------------
-----------------------------------
Crontab entry is ...
48 15 * * * sh /users/d12381/check.sh > /users/d12381/check.log 2>&1