Houman
November 28th, 2005, 02:12 AM
Hi there;
I do some small coding for a project, and I would like to be able to quickly backup everything, what i have so far is this: (i know almost nothing of shell scripting, so please forgive me)
#! /bin/bash
cd prog1
make clean
cd ..
save_name=prog1`date +%F`.tar.gz
echo $save_name
tar -zcvf $save_name prog1
so this way i get a compressed file which has the date in it, but now the problem is that i would like to send this file to my gmail account automatically and i dont have any idea how to do that;
I found out that Evolution lets you compose an email with an attachment, but you have to "click" the send thing, so thats out of questions, i did some googling and i found a program called "mutt" which is in ubuntu repop too, this program can automatically send mime attachments, BUT it needs sendmail to be installed which is not the case in breezy, so does anyone know of anyway to send an attachment automatically?
regards;
Houman
I do some small coding for a project, and I would like to be able to quickly backup everything, what i have so far is this: (i know almost nothing of shell scripting, so please forgive me)
#! /bin/bash
cd prog1
make clean
cd ..
save_name=prog1`date +%F`.tar.gz
echo $save_name
tar -zcvf $save_name prog1
so this way i get a compressed file which has the date in it, but now the problem is that i would like to send this file to my gmail account automatically and i dont have any idea how to do that;
I found out that Evolution lets you compose an email with an attachment, but you have to "click" the send thing, so thats out of questions, i did some googling and i found a program called "mutt" which is in ubuntu repop too, this program can automatically send mime attachments, BUT it needs sendmail to be installed which is not the case in breezy, so does anyone know of anyway to send an attachment automatically?
regards;
Houman