I want to mail a file to someone from a cronjob. How would I do that?
It's a cronjob starting every day at 00:00, creating a backup file. After the backup, I want to mail the created file to myself (on another host).
I've got a couple of similar things running at work. Assuming the file is in /home/rogier and it goes to you at 01:01am, try this: 01 01 * * 1 root cat /home/rogier/backup | sendmail -f rogier@host.whatever icarus@guldernet.nl Simon * Simon Chapman * simon@dylan.org * ICQ# 26523352 "Fear leads to anger. Anger leads to hate. Hate leads to using Windows NT for mission-critical applications." - What Yoda *meant* to say -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/