8. Periodic Processes

image

The key to staying in control of your system is to automate as many tasks as possible. For example, an adduser program can add new users faster than you can, with a smaller chance of making mistakes. Almost any task can be encoded in a Perl, Python, shell, or expect script.

It’s often useful to have a script or command executed without any human intervention. For example, you might want to have a script verify (say, every half-hour) that your network routers and bridges are working correctly and have it send you email when problems are discovered.[1]

[1] Many sites go further than this and send a text message ...

Get Linux Administration Handbook, Second Edition 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.