LINUX CLASSES - 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 - most recent first (Please feel free to answer questions posted by others!)
I welcome your comments. However... I am puzzled by many people
who say "Please send me the Linux tutorial." This website *is* your Linux Tutorial! Read everything here, learn
all you can, ask questions if you like. But don't ask me to send what you already have. :-)
NO SPAM! If you post garbage, it will be deleted, and you will be banned.
|
Copyright ©
by Bob Rankin
- Privacy Policy
All rights reserved - Redistribution is allowed only with permission.