Sorry I neglected to mention that the email address is hard coded.
====================Script======================
# Send users table
echo "To:some@email.co.uk;
Subject:'Users table'" > ./mailtemp;
mysql -e "select * from dbname.users" -u someuser --password='somepw' >> ./mailtemp;
/usr/lib/sendmail -t -oi < ./mailtemp;
rm -f ./mailtemp;
====================Script======================
==================Cron Entry====================
################### Data Dump
0 1 * * 0 /scriptlocation/dumpscript.sh
==================Cron Entry====================
The script fires at the right time and send out empty emails.
Sam
Last edited by fallen; 11-04-2003 at 07:13 AM.
|