LINUX CLASSES - LINUX COMMANDS Linux provides a really handy way to schedule future events so they run automatically. You can use the
Can I Schedule a Task with Linux?
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
Comments - most recent first
|
| ||
![]() |
Copyright ©
by Bob Rankin
- Privacy Policy
All rights reserved - Redistribution is allowed only with permission.
All rights reserved - Redistribution is allowed only with permission.