Sending attachements - email

From: Andre Godin (AGodin@jetnet.ca)
Date: Thu Jun 12 2003 - 13:47:59 EDT


I have a requirement to send a dated filename as an attachement from a cron
job. I'm currently using uuencode to send the file as an attachment with
mailx.
 
ie:
uuencode <filename*.lst> <filename'date +%Y-%m-%d'.txt> | mailx
user@domain.com <mailto:user@domain.com>
 
Only problem is that the cron job has to run the day after the dated
filename is created. The way I'm doing it, the attached filename is dated
with todays date and note yesterdays or the actual filename name.
 
1. Does mailx or sendmail support sending attachements - if so, any tips on
sending them without uuencoding first would be great.
2. How do you just uuencode a filename that changes (date) daily and have it
sent with yesterdays date?
 
Any help on this one would be great!
 
Thanks...Andre
 
Unix Systems Analyst
JETNET Internetworking Services Inc.
333 Preston St. Suite 300
Ottawa, Ontario
ph: (613) 237-5995
fax: (613) 237-9002
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:26:35 EDT