Skip to content
Snippets Groups Projects
Commit 0886994e authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

Cron instructions

parent 557c5632
No related branches found
No related tags found
No related merge requests found
......@@ -2,8 +2,9 @@
## Get ready
- $ `pip install ldap3`
- $ `mkdir -p ~/.cache`
- Get Python 3 & pip
- `pip3 install ldap3` (you might need sudo, or --user, or a virtualenv)
- `mkdir -p ~/.cache`
## Go !
......@@ -13,3 +14,14 @@ On the first time, it will construct a database of the guys already here.
After that, on each launch, it will find the new guys, and send them a greeting mail.
The template of this mail is in `template.txt`.
## Cron job
To run this script everyday at 5 AM:
```bash
crontab -l > cronfile
echo "0 5 * * * $(which python) $(pwd)/greet_newcomers.py" >> cronfile
crontab cronfile
rm cronfile
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment