notes/article/os/linux/crontab.md

210 B

crontab usage

Get yesterday

% 需要做转义

0 9 * * * python2.6 $HOME/.local/cron/disk_monitor.py
9 0 * * * curl "http://localhost:8000/sync?query_date=$(date -d 'yesterday' +\%Y-\%m-\%d)"