Top Interesting cron Jobs To Run On Linux
2) /etc/cron.*/ directories
3) /var/spool/cron/ directoryIf it finds commands listed here it executes them for you.
You’ve probably used Active Directory, LDAP, NIS+ or other user and group account management software, but have you ever used one that really made you happy? The reason you haven’t is that there’s not a lot of automation built into them. Sure, you can create a user account, remove a user account, and create groups and manage groups, but when it comes down to real management, you probably haven’t found the right tool. The one you want might have to be the one you create yourself via scripts.In UNIX, it’s simple to create scripts to prompt you for the accounts that you wish to remove, have the system copy the user’s files to a new location, change the permissions, search all systems for any files owned by that user, change permissions on those files, or move them and complete the process by removing the user account from the directory service. Check out some of the add-on modules for your user management tool of choice. Microsoft, for example, offers its Active Directory Resource Kit Book and CD that includes utilities for automation scripting.
The only time manual patching is called for is when that stubborn minority of systems will not take patches by automated means. Linux and Windows include tools to perform automated updates, but if you’d like more control of which patches your systems receive and when they receive them, investigate HP’s Data Center Automation Center (HPDCAC) software (formerly Opsware). Much more than just an automated patching application, HPDCAC moves managing a complex infrastructure into a single, simple interface. If you’re looking for a “patch only” solution, check out Ecora’s Patch Manager for agentless patch management.
You can perform those housekeeping duties, service restarts and maintenance notices through automation. Set up your scripts to fire during low-use hours for clearing temporary file dumps, restarting your favorite services and sending out any maintenance or downtime notices via email. You’ll find that automating these tasks takes some of the pressure off of you to remember which day it is and which list of things you need to do. There’s no reason to keep a calendar of these; let the system handle them.crontab examples –
When services to users become critical needs, you need to be prepared and stay ahead of problems. Most of these tasks can be managed using Cron. It will make your life easier and keep your users happy.