CHAPTER 26Evaluating Variablesin a Flat File

One common scripting technique is to create a flat file that is one of a potential number of canned messages for users to receive—messages such as notifications of downtimes, changes in the environment, or use of system quota. (I consider a flat file simply a file that contains text.) Based on the logic in the script, the proper message will be sent to the user or users. A more advanced implementation of this technique provides a template that refers to environment variables and contains customizable elements so the message can be tailored specifically to the recipient.

In Chapter 36, I present a script that checks every morning for user passwords that are aging and therefore should be changed. In ...

Get Expert Shell Scripting now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.