Practice 4A -Tasks scheduling in Windows&Linux
Practice 4A -Tasks scheduling in Windows&Linux
PRACTICE 11:
Tasks Scheduling using Windows/Linux
• At 12:00, show a greet message into the computer desktop (figure out
how to do it)
I. E. S “Zaidín-Vergeles” 1º ISO
Implantation of Operating Systems
1. Schedule a task that will be run in a minute by typing the following command:
“at now + 1 minute” .
2. When prompt “at>” appears, type command “date” and then press “Enter”
key.
3. When the second prompt “at>” appears, type command “who” and then
press “Enter” key.
4. When the third prompt “at>” appears, press “Ctrl+D” key to finish the
sheduling. Wath th eexit. When will be executed date and who
commands? Where will be send the output of those commands?
5. Execute command “crontab –l” to show the user cron table. Do you have
any program scheduled?
6. Execute command “crontab –e” to edit a new cron table. You should use the
root user. When editor appears, add the following line:
30 20 * * 5 /bin/false
I. E. S “Zaidín-Vergeles” 1º ISO
Implantation of Operating Systems
7. When you finish typing it, save contents and exit from the text editor. Watch
the screen output.
8. Now, execute “crontab –l” command and press “Enter” key to show your
cront table. When will be executed /bin/false command?
I. E. S “Zaidín-Vergeles” 1º ISO
Implantation of Operating Systems
I. E. S “Zaidín-Vergeles” 1º ISO