delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
To: | cygwin AT cygwin DOT com |
From: | jerzy =?iso-8859-2?Q?szczud=B3owski?= <jerzy AT jedwab DOT net DOT pl> |
Subject: | mailx mail replacement - solution in shell script |
Date: | Sun, 09 May 2004 22:23:25 +0200 |
Organization: | The Knights Who Say... nE! |
Lines: | 14 |
Message-ID: | <slrn.pl.c9t4q3.nso.jerzy@solveig.jedwab> |
X-Complaints-To: | usenet AT sea DOT gmane DOT org |
X-Gmane-NNTP-Posting-Host: | w-net.pl |
X-Kazaa: | just say no |
X-Photo: | http://www.jedwab.net.pl/~jerzy/jurcys.jpeg |
X-Licznik: | 7444 |
User-Agent: | slrn/0.9.7.4 (pl-1.4.3) (Linux/2.6.3 (i686)) |
Since mailx package is not ported to Cygwin, and from time to time someone miss it, I wrote short shell script that enables straight compatibility with some programs which by default depend on "mail" command (i.e. smartmontools). Since this is really simple script, it is very limited. In example, it emulates only batch mode (actually, you may type form stdin but there are no hints about headers), only few options are avaiable (eascb) and recipient address must come at the end of line (due to getopts shortcomings). But, what is actually important here, you can type: "cat /var/log/syslog | mail root", just like on real unices :) URL: http://jedwab.net.pl/~jerzy/shell/mail.bz2 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |