That may not work as you expect if file "filename" is something other than text. You may want to consider something like:
uuencode filename filename | mail -s "File from script" emailaddr The file will have to be uudecoded at the receiving end but it should make it intact. I believe uuencode/decode are part of the sharutils RPM. - Paul On Wed, 2003-09-17 at 20:18, David Hart wrote: > On Wed, 2003-09-17 at 19:41, Rus Foster wrote: > > On Wed, 17 Sep 2003, David Hart wrote: > > > > > I seem to recall there's a way to send a file from a shell script but > > > cannot remember how to do it. > > > > > > > If its plain text then just > > > > cat filename | sendmail [EMAIL PROTECTED] > > > I new there was an animal in there but couldn't come up with cat. > Thanks. > > > else you want to look at uuencoding it then cat'ing it > > > > Rus > > -- > > w: http://www.jvds.com | Virtual Dedicated Servers from $15/mo > > e: [EMAIL PROTECTED] | Dontations made to Debian, FreeBSD > > t: +44 7919 373537 | and Slackware > > t: 1-888-327-6330 | email: [EMAIL PROTECTED] -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list