On Mon, 20 Sep 1999, Hawke wrote:
> I would like to use qmail-inject to send the tail of a log file. What would
> be the correct redirection and syntax for doing so? I've tried several
> variations, but I'm not a very experienced shell programmer. So any help
> would be most appreciated.
> something like:
> tail log | echo to: [EMAIL PROTECTED] | qmail-inject
> sends a blank email even though there's text in the log file.
> and
> tail log > echo to: [EMAIL PROTECTED] | qmail-inject
> doesn't seem to do anything at all.
> As you can see I'm really not very clear on my redirects beyond the very
> basic level.
> THanks,
> -Hawke
tail log | qmail-inject [EMAIL PROTECTED]
Or even better
tail log | mailsubj "log file details" [EMAIL PROTECTED]
This ensures a Subject: header, and it separates the headers from the
body of the message - even if there is a colon in the log file
details.
Regards
Peter
----------
Peter Samuel [EMAIL PROTECTED]
Technical Consultant or at present:
eServ. Pty Ltd [EMAIL PROTECTED]
Phone: +61 2 9206 3410 Fax: +61 2 9281 1301
"If you kill all your unhappy customers, you'll only have happy ones left"