hello friends,
i have written query to show the disk space usage of sum directories
below one is my script
#!/bin/ksh
CURR_DAY=`date +%m%d%Y_%H%M%S`
touch Daily1.txt
function ds
{
echo " Allocated Used Free %Used Directory" > Daily1.txt
df -h /home/vfuser | grep -iv Filesystem | grep -iv vol >> Daily1.txt
df -h /home/vfuser/review | grep -iv Filesystem | grep -iv vol >> Daily1.txt
df -h /home/vfuser/transfer | grep -iv Filesystem | grep -iv vol >> Daily1.txt
}
echo ">>>> Disk space Info">> Daily1.txt
ds
echo ">>>> Please Take Necessary Action Immediately if any of the disk space crosses more than 70% \n">>Daily1.txt
echo "--------------------------------------------------------------------------------------------------------------------------\n">> Daily1.txt
echo " Thanks & Regards, \n ">>Daily1.txt
echo " abc Operation Support \n ">>Daily1.txt
echp "--------------------------------------------------------------------------------------------------------------------------\n">>Daily.txt
cat Daily1.txt
mail -s "abc Reporting FILES ZIPPED Status On ${CURR_DAY} "
abc@gmail.com < /home/vfuser/Daily1.txt
rm Daily1.txt
and the out of this is
Allocated Used Free %Used Directory
9.9G 1.8G 7.6G 20% /home/vfuser
5.0G 1.7G 3.4G 33% /home/vfuser/review
65G 49G 17G 76% /home/vfuser/transfer
>>>> Please Take Necessary Action Immediately if any of the disk space crosses more than 70% \n
--------------------------------------------------------------------------------------------------------------------------\n
Thanks & Regards, \n
abc Operation Support \n
i m trying to change in script that i want add boarders of this columns n rows.
In this i m nt getting wat changes i hav 2 do in this.
if any one knows. please suggest m that how can change in script so will get out in table
thanks advance,
santosh