Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 252 Bytes

cron-environmental-variables.md

File metadata and controls

10 lines (8 loc) · 252 Bytes

Environmental Variables in cron

On debian you can define enviromental variables in cron as follows:

SHELL=/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin
TOKEN=123456abcdef

0 5 * * 1 tar -zcf /var/backups/home.tgz /home/