Wednesday, March 18, 2009

scheduling a task to mail one file as attachment

use crontab -e to edit the crontab

and then write the below line ( modify the time and date as per your need)

25 20 */15 * */5 mail -s "testing mail for usera " usera@gmail.com < /etc/sysconfignetwork-scripts/ifcfg-eth0

No comments: