Linux Tips I Wish I Knew Long Ago – “at” runs a command once at a certain time

Everyone knows Cron for running reoccurring tasks at specific times. But what if you just want something to happen once, like switching a site to live, or restarting a computer due to the latest sets of patches? You could make a complicated cron that runs and then removes itself or you could do it the easy way. Enter At, I feel the unknown sibling to Cron. At runs a command once, you give it the command (or series of commands) and when you want it to happen and it does the rest.

See examples here:

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.