Linux System Administrators responsible for RHEL 6.x and CentOS 6.x systems need to be able to automate system tasks. The official Red Hat Enterprise Linux (RHEL) 6.x “Deployment Guide” documentation includes a good tutorial on the popular “Cron” and “At” utilties. Read about these tools and other related items on the official documentation site:
Note that the CentOS 6.x minimal install does not include “at” among the default minimal set of utilities. Follow the RHEL 6 document for related commands to install the “at” tool and start the “atd” service. These basic tools for automation are important parts of the core Linux systems administration tool set. Learn them and use them!
# pipe reboot command to "at" with a scheduled time # this example will reboot your server overnight echo "/sbin/shutdown -r now" | at 2:00am atq # Use "at -c" with a number from "atq" to view at job details # at -c NUMBER
Related articles you may find useful:
- Schedule A One Time Restart on Your Ubuntu System Using The at Command (mixeduperic.com).
- Linux tip: Job scheduling with cron and at (developerWorks @ ibm.com)