Home » Questions » Computers [ Ask a new question ]

On Ubuntu 9.04, is there any way to automatically email text files through a script?

On Ubuntu 9.04, is there any way to automatically email text files through a script?

I've been actively tweaking my backup script on an Ubuntu 9.04 Jaunty Jackalope Machine - as it is now, the script uses rsync and cron to backup certain folders several times a day. At the end of the script, I use a set of echo commands to generate log files that would indicate, among other things, whether or not the backup had been executed during a particular time. What's the easiest way to make Jaunty automatically email me the logs just shortly (0-15 minutes) after they have been generated? Would I be able to use the SMTP of my gmail account for this purpose?

Asked by: Guest | Views: 335
Total answers/comments: 0