[thelist] Re: shell script problem

eduardobk at via-rs.net eduardobk at via-rs.net
Thu Mar 20 11:10:30 CST 2003


Rob, I tried here and it worked fine:
mail -s "Your files" eduardo at somedomain.com < attachment.zip

:)
Eduardo Bacchi Kienetz
http://www.noticiaslinux.com.br/eduardo/

---------------------------
Date: Thu, 20 Mar 2003 20:00:36 +0700
From: Rob Schumann <roblgs at cscoms.com>
To: "thelist at lists.evolt.org.uk" <thelist at lists.evolt.org>
Subject: [thelist] shell script problem
Message-ID: <r01050300-1024-F16442995AD311D789E7000502D39EE0@[192.168.1.100]>
Content-Type: text/plain; Charset=US-ASCII
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Precedence: list
Reply-To: "thelist at lists.evolt.org.uk" <thelist at lists.evolt.org>
Message: 7

Hi All,

I have a little problem with a shell script backup, compress server
logfiles and then send the result to the site owner as attachments to
email.

The first parts are no problem, but the emailing bit has me stumped. Is
there some way for a shell script to communicate directly (or indirectly
come to that) with sendmail??

My guess is that I would have to manually assemble the mail headers
within the shell script, adding the attachment and then pass this on to
sendmail for despatch.

Does anyone have a readymade solution for this... or some pointers to
how to do it/where to find the answers.

TIA

Rob
------------------------------


More information about the thelist mailing list