Computing.Net > Forums > Linux > Automaticly Email Files Daily

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Automaticly Email Files Daily

Reply to Message Icon

Name: Aspenglade
Date: August 11, 2005 at 20:30:21 Pacific
OS: Linux Fedora Core 3
CPU/Ram: N/a
Comment:

Hi there,

I am new to Linux and I am trying to find out how to go about creating a file that will automatically email all of the files (5-10 new files) in a directory to myself every day. I am a digital compositor and being able to send myself all of my scripts daily in order to maintain a constant backup would be very useful.

If anyone could offer any help on doing this I would greatly appreciate it.



Sponsored Link
Ads by Google

Response Number 1
Name: Aspenglade
Date: August 15, 2005 at 10:30:55 Pacific
Reply:

Still looking for an answer to this if anyone could help out!


0

Response Number 2
Name: 3Dave
Date: August 17, 2005 at 04:11:55 Pacific
Reply:

You can send files as attachments from the commandline with:
$ afilename=somefile.ext;(echo "$afilename is attached" ; cat $afilename | uuencode $afilename) | mail -s "`echo $afilename`" youraddress@yourserver.com
With that you should be able to write a small shell script and run it daily with cron.



0

Response Number 3
Name: Aspenglade
Date: August 18, 2005 at 09:08:28 Pacific
Reply:

Great thanks! Is there any way to schedule this to run when the user logs out of Linux?


0

Response Number 4
Name: 3Dave
Date: August 19, 2005 at 07:00:13 Pacific
Reply:

I am guessing the user is running bash. If so create a ~/.bash_logout file for the user with the command in. If not using bash, try just ~/.logout

If you copy it to /etc/skel/ too then any new users will automatically have the file in their home directories when created.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Automaticly Email Files Daily

tar.gz files www.computing.net/answers/linux/targz-files/2434.html

perl scripts for filtering mail www.computing.net/answers/linux/perl-scripts-for-filtering-mail/13380.html

Proxy Connection at win 98 client www.computing.net/answers/linux/proxy-connection-at-win-98-client/6053.html