Re: [SLUG] sendmail

From: Eben King (eben1@tampabay.rr.com)
Date: Thu Apr 08 2004 - 16:19:46 EDT


On Thu, 8 Apr 2004, mrock wrote:

> I have a shell script running on my RH 8.0 box that checks for entries
> in a directory and then updates another file with on those entries. I
> presently send and email using sendmail announcing that an update has
> occurred. I store the number of entries in a variable called num. How
> can I put that number in the email so that it says <num> of entries have
> been added to the file, and not just that and update has occurred.
> Everything I have tried has not worked and only the variable name
> appears.

Make sure $num is in "" or nothing, not '':

echo $num 'entries have arrived.' | mail -s subject recipients

-- 
-eben    ebQenW1@EtaRmpTabYayU.rIr.OcoPm    home.tampabay.rr.com/hactar

Logic is a systematic method of coming to the wrong conclusion with confidence.

----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:17:03 EDT