On Wed, Sep 17, 2003 at 08:18:08PM -0400, 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.

Well that's one animal that should have been left sleeping in the corner.
Another "useless use of cat"!

        < filename sendmail [EMAIL PROTECTED]
or for the more conventional among you:
        sendmail < filename [EMAIL PROTECTED]

or it makes more sense to me to use mail insteadof sendmail. mail knows
how to invoke sendmail:
        mail < filename [EMAIL PROTECTED]

> 
> > else you want to look at uuencoding it then cat'ing it
> > 
> > Rus
> > -- 



-- 
---- Fred Smith -- [EMAIL PROTECTED] -----------------------------
               But God demonstrates his own love for us in this: 
                         While we were still sinners, 
                              Christ died for us.
------------------------------- Romans 5:8 (niv) ------------------------------

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to