Skip to content

Commit

Permalink
add Scheduling
Browse files Browse the repository at this point in the history
  • Loading branch information
HuiGong-dev committed Oct 31, 2021
1 parent 1f010e5 commit 03743ed
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,14 @@ import urllib.parse as ul
## Usage

```Shell
$ pyhon3 updater.py
pyhon3 updater.py
```
## Scheduling
Crontab is a job scheduler on Ubuntu. Since the assignment is always due on Friday, I set the scheduler to run at minute 15 past every hour from 14 through 18 on Friday.
```Shell
crontab -e
```

```Shell
15 14-18 * * 5 /path/to/python3 /path/to/updater.py >> /path/to/cron.log 2>&1
```

0 comments on commit 03743ed

Please sign in to comment.