from small one page howto to huge articles all in one place

search text in:

Which screen resolution do you use?

poll results

Last additions:
using iotop to find disk usage hogs

using iotop to find disk usage hogs






average rating: 1.7 (102 votes) (1=very good 6=terrible)

May 25th. 2007:




why adblockers are bad

Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

Workaround and fixes for the current Core Dump Handling vulnerability affected kernels






average rating: 1.4 (42 votes) (1=very good 6=terrible)

April, 26th. 2006:

Druckversion . pdf icon
You are here: System->Tips and Tricks

Scheduling with "at"

This tip shows you how to schedule events in Linux with the at command. While cron is the more common scheduling utility in Linux, at is useful for scheduling one-time events, or simply setting a task to run at some date/time in the future.

Code Listing 1: Getting at

# emerge sys-apps/at 
apt-get install at
Now that at is installed, the daemon must be started so that scheduled jobs can be run.

Code Listing 2: Starting atd

# /etc/init.d/atd start 
 * Starting atd...                                                        [ ok ]

Now you can start using at.

Note: For security you may need to edit /etc/at/at.allow and /etc/at/at.deny. See the manpage for more information on securing at.

Code Listing 3: Using

// Set XMMS to play wakeup.ogg at 6am tomorrow morning 
% at 6am tomorrow 
at> xmms ~/music/wakeup.ogg 
at> <Ctrl-D> 
job 6 at 2003-10-31 06:00 
// At 11:30 pm today, start an install of mozilla 
% at 11:30 pm today 
at> emerge update mozilla 
at> <Ctrl-D> 
job 7 at 2003-10-30 23:30

Now there are two jobs scheduled which will be run 'at' the specified times. To view a list of jobs you've scheduled, use atq. If you decide you don't want a job to run, you can can use the atrm command.

Code Listing 4: Removing a previously scheduled job

// Remove the 'emerge' job we scheduled for 11:30pm 
% atq 
6       2003-10-31 06:00 a david 
7       2003-10-30 23:30 a david 
% atrm 7 
% atq 
6       2003-10-31 06:00 a david

For more information use man 1 at.


rate this article:
current rating: average rating: 1.5 (77 votes) (1=very good 6=terrible)
Your rating:
Very good (1) Good (2) ok (3) average (4) bad (5) terrible (6)


Support us on Content Nation
rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2020 Sascha Nitsch Unternehmensberatung GmbH
Valid XHTML1.1 : Valid CSS : buttonmaker
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 42.4 ms