Command would not execute within a script
I wrote a script to display disk-quotas. It works fine if I execute it manually. However when I execute it from cron it says ...
"repquota: command not found"
if [[ $day == "Sat" || $day = "Sun" ]]
echo Weekend job will not execute
if [ $day == "Wed" ]
repquota -av > /var/log/quota.log
repquota -avg >> /var/log/quota.log
echo Job not scheduled for today
mailx -s "Result of Quotacheck" root@localhost << EOT
Also there is no display in the body of the mail only ... ""