Creating Jobs to Run One Scheduled Time with the at Command

Okay, so cron is amazingly useful for regularly scheduled tasks. However, what about a task that you only want to happen once—something you want to postpone until some later time when you won’t be around to execute it yourself? You could do this with cron, setting up a crontab file to have an entry that runs crontab -u at the end to delete itself. However, there is a better way: the at program.

Note

As an example of how useful the at command can be, I used it this past summer during a road trip to Alaska. Each morning an at command, which I had set up in advance, posted an entry to my blog that described where on the Alaska Highway I was going to be that day. I found, however, that it ...

Get FreeBSD6 Unleashed 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.