Browse Source

fix(auto-jobs): remove the assets link to the image and add the image the correct way

pull/1910/head
miguel 2 years ago committed by MSilva95
parent
commit
3e263ba8c8
  1. 12
      subjects/devops/auto-jobs/README.md
  2. BIN
      subjects/devops/auto-jobs/resources/cronTasks-Table.png

12
subjects/devops/auto-jobs/README.md

@ -5,22 +5,26 @@
In this exercise, you will create four files called `task1`, `task2`, `task3`, and `task4`, which will contain the necessary formulas to set up a group of scheduled tasks in the group In this exercise, you will create four files called `task1`, `task2`, `task3`, and `task4`, which will contain the necessary formulas to set up a group of scheduled tasks in the group
##### task1: ##### task1:
Time: `Every Friday, at 20:41` Time: `Every Friday, at 20:41`
Command: `echo "01"` Command: `echo "01"`
##### task2: ##### task2:
Time: `Every minute` Time: `Every minute`
Command: `sh /home/user01/check` Command: `sh /home/user01/check`
##### task3: ##### task3:
Time: `Everyday midnight at 12 AM` Time: `Everyday midnight at 12 AM`
Command: `sh /home/user01/backup` Command: `sh /home/user01/backup`
##### task4: ##### task4:
Time: `After Every Reboot` Time: `After Every Reboot`
Command: `01exec` Command: `01exec`
All files content must be in this format: All file content must be in this format:
```console ```console
$ cat task-example | cat -e $ cat task-example | cat -e
@ -37,6 +41,7 @@ task1 task2 task3 task4 auto-jobs.tar
``` ```
**Only `auto-jobs.tar` should be submitted.** **Only `auto-jobs.tar` should be submitted.**
### Hints ### Hints
Linux Cron utility is an effective way to schedule a routine background job at a specific time and/or day on an on-going basis. Linux Cron utility is an effective way to schedule a routine background job at a specific time and/or day on an on-going basis.
@ -46,18 +51,19 @@ You can use the `crontab` command to manage your jobs. This command can be calle
`crontab -l`: List the jobs for the current user `crontab -l`: List the jobs for the current user
`crontab -r`: Remove all jobs for the current users. `crontab -r`: Remove all jobs for the current users.
`crontab -e`: Edit jobs for the current user. `crontab -e`: Edit jobs for the current user.
##### Linux Crontab Format: ##### Linux Crontab Format:
`MIN HOUR DOM MON DOW CMD` `MIN HOUR DOM MON DOW CMD`
##### Table: Crontab Fields (Linux Crontab Syntax): ##### Table: Crontab Fields (Linux Crontab Syntax):
![Table: Crontab Fields](https://assets.01-edu.org/devops-branch/cronTasks-Table.png) ![Table: Crontab Fields](resources/cronTasks-Table.png)
##### Examples: ##### Examples:
1. Schedule a job every hour at the fifth minute, every day: `5 * * * * {command}` 1. Schedule a job every hour at the fifth minute, every day: `5 * * * * {command}`
2. Schedule a job 5 minutes after midnight every day: `5 0 * * * {command}` 2. Schedule a job 5 minutes after midnight every day: `5 0 * * * {command}`
> You have to use Man or Google to know more about commands flags, in order to solve this exercise! > You have to use Man or Google to know more about commands flags, in order to solve this exercise!

BIN
subjects/devops/auto-jobs/resources/cronTasks-Table.png

diff.bin_not_shown

After

Width:  |  Height:  |  Size: 76 KiB

Loading…
Cancel
Save