I've configured WinSCP and now i can access email.sh
Now i realised that,what i was looking aint "quota usage stats"
actually it was daily "Bandwidth Distribution Table"
Kindly check what ive done and if you dont mind educate me.
Ive tried making a table which i'd like to get in my report but no idea about where to point the same.
Code: Select all
if printf '%s' "$data" | egrep -q "6"
then
#Bandwidth Distribution Table
echo -e "<br><h1>Bandwidth Distribution Table:</h1><br><table $tablestyle>" >> /tmp/email-log.txt
echo "<tr><th $thstyle>Host</th><th $thstyle>Total</th><th $thstyle>Down</th><th $thstyle>Up</th></tr>" >> /tmp/email-log.txt;
cat /xxx > /tmp/work.tmp
while read line
do
xxx
converttime=$(date -d @$time);
echo "<tr><td $tdstyle>"$converttime"</td><td $tdstyle>xxx</td></tr>" >> /tmp/email-log.txt;
done < /tmp/work.tmp
rm /tmp/work.tmp
echo -e "</table>" >> /tmp/email-log.txt
fi