0% found this document useful (0 votes)
6 views

Practice 4A -Tasks scheduling in Windows&Linux

The document outlines tasks scheduling in both Windows and Linux operating systems. It provides specific commands and steps for creating scheduled tasks, such as backing up files, displaying messages, and executing commands at set times. Additionally, it includes instructions for managing cron jobs in Linux and using the Windows Task Scheduler.

Uploaded by

jesus perez
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Practice 4A -Tasks scheduling in Windows&Linux

The document outlines tasks scheduling in both Windows and Linux operating systems. It provides specific commands and steps for creating scheduled tasks, such as backing up files, displaying messages, and executing commands at set times. Additionally, it includes instructions for managing cron jobs in Linux and using the Windows Task Scheduler.

Uploaded by

jesus perez
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Implantation of Operating Systems

PRACTICE 11:
Tasks Scheduling using Windows/Linux

Tasks scheduling in Windows

1. Using command schtasks.exe:


• Make a weekly backup copy of “My Documents” folder contents and
store them in “D:\COPIA_DOCS”

• At 12:00, show a greet message into the computer desktop (figure out
how to do it)

• January 1st, at 16:00 show a new year greeting.

• Shutdown the computer at 15:00 everyday.

2. Using the Windows tasks scheduler, do the previous section exercises. To


do this, you should create text files (.bat extensión) that contains the right
command to do the task.

I. E. S “Zaidín-Vergeles” 1º ISO
Implantation of Operating Systems

Tasks scheduling in Linux

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

9. Execute command “ls /var/spool/cron/crontabs/” to show cron tables for all


system users. Try to execute command “cat
/var/spool/cron/crontabs/[your user]” and check whether is showed the
same screen output like in the previous exercise.

10. Execute “crontab –r” to delete your cron table.

11. Type “exit” to logout and come back to your shell.

I. E. S “Zaidín-Vergeles” 1º ISO

You might also like