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
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.
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.
Summary: Netscape will automatically unzip files as it downloads them. :( So use Lynx or an ftp client to download compressed archives. Gftp is a good one to try. Or IglooFTP if you want something a little fa...
Summary: Procmail is a powerful and helpful utility for filtering and processing mail before it is delivered to the user's mail box. Worth spending the time to understand. http://www.procmail.org http://www.li...
Summary: Hi, I am unable to share a proxy server which is running on RedHat Linux 7.0 from Win 98 Client. Details of System Configuration is given below. Cpu:Celeron 300 Mhz. SDRAM:256 Mb. HDD: 10 Gb Segate. N...