Doctor Bob
Linux Topic Search
TOURBUS
HOME PAGE
SAVVY
CONSUMER
FREE TECH
SUPPORT

LINUX COMMANDS

Can I Schedule a Task with Linux?

Linux provides a really handy way to schedule future events so they run automatically. You can use the at command to schedule reminders or administrative tasks or to run a command later when the computer won't be busy.
After you specify the time (and optional date) for your event, at prompts you for the command to run. After entering your command, press ctrl-D to finish. Here are some examples:

at 8:15am Jul 14
echo "Remember to call Ruth about the Amalgamated Contract!"
^D
at midnight Friday
cp project/source backup
^D

To find out what events you have already scheduled with at, enter the following:

at -l
Date Owner Queue Job#
08:15:00 07/14/97 root c 1
00:00:00 01/10/97 root c 2

To cancel an event scheduled with at, use the -r switch and a job number (which you can find using the at -l command). For example, to cancel job 2, you would ent er

at -r 2

Previous Lesson: Comparing Files
Next Lesson: Linking Files

[ RETURN TO INDEX ]

Comments

No comments yet

*Name:
Email:
Notify me about new comments on this page
Hide my email
*Text:
 

Ask Bob Rankin - Free Tech Support
<Send This Link to a Friend>         <Bookmark This Page>


Copyright © by Bob Rankin
All rights reserved - Redistribution is allowed only with permission.