5

Email Script not working when added to cron

view full story
linux-howto

http://www.unix.com – Hi I have written an email script in python which sends email to the given id. I have customized the script for generating space alert inside a shell script as shown below Code: df -h /microfocus > /tmp/spacereport ## Filter the %usage to variable per per=$(awk '{if (NR==3){print $4}}' /tmp/spacereport) ## Strip off the character % from the variable per result=`echo $per|sed s/.$//` if [ $result -gt '80' ] ; then         echo "Space reached to 80 % on /microfocus"         echo "Triggering a mail "     &nbsp (HowTos)