On Mon, 2006-01-30 at 08:23 +0000, Mark Rogers wrote:
Can I do maths within my script? Eg only if the current %age used value is at least 2% lower than the stored value do I overwrite the stored value, so 85/84/85/84 readings cause 85 to get stored as last reading, but 84 doesn't overwrite it so the subsequent 85 doesn't exceed it and generate an email. (Did that make any sense at all?)
Try a man bc or perhaps man dc if reverse-polish notation doesn't cause your brain to keep segfaulting.