On 04/18/2007 07:36 AM somebody named Roger Oberholtzer wrote:
> On Tue, 2007-04-17 at 06:53 -0400, ken wrote:
>> I need to email from the command line a previously created file.  (The
>> finished working command will go into cron and so should be completely
>> programmatic.)  Using Linux, There are a few open source apps that
>> should work: mail, mailx, and nail.  Weirdness is that they all share
>> the same manpage.  So maybe they all work exactly the same (???).
> 
> I have used mutt to mail things via the command line. I do this inside
> makefiles. 
> 
>       mutt -s "Subject" -a file_to_send. [EMAIL PROTECTED]
> 
> My use was more complicated. But it does work.

Roger, thanks.  Hadn't thought of mutt.  Does the standard suse version
have SSL compiled in?  (According to the docs, "mutt -v" should reveal
if so.)


> 
> Another way is via Tcl and the mime extension. A few lines of script and
> you can send e-mail however you want. 

Hmm,.. yeah, "man -k" on email-related terms spit out a lot of Tcl
manpages but I've written so little Tcl.  Perl is a possibility too.
I've actually accomplished the basic functionality with bash (without
the use of any email-specific app), but not of course employing SSL.
SSL, it turns out, isn't absolutely required unless this application is
to be mobile, which I'd like it to be (for the much-heralded mobile
office thang).  That's a two-beer conversation though.  The Point:
Writing code is a 90% solution, already done (so easy), frail in the
face of changes made to the server, and reinvents the wheel.


> We run some analysis software that
> sends e-mail logs to a selected user when each section has completed
> analysis. Don't ask why.

Yeah, I've done that sort of thing a few times.  It's actually a quite
elegant solution for a lot of purposes.


Thanks for the ideas.  And for the understanding.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to