Ninja’s TotD: Simple Command Scheduling

So most people have heard of Cron, the task scheduling deamon, and some of you might even have used it. Cron is great if you have some task that needs to be repeated at regular intervals. If you just one to schedule something to run once at some given time in the future though, Cron isn’t your best option. For a one off scheduled execution, try: at. At, which is available both in Linux and Windows, allows you to set up something to run at a specified time, just once. To get started just open up a terminal, and type in:

at -f <script> <time>

your script will get executed at the next <time>.


About this entry