to use bash syntax
* * * * * bash -c 'ls -t /mytest | tail -n +2 | xargs rm --'https://stackoverflow.com/questions/56311070/bash-command-with-pipe-not-working-in-crontab/56311820
cron -e 0 0 * * * /usr/bin/daily-commit cd ~/Gits/templates/etc/commit sh ./commit.sh @monthly
- @reboot
- @hourly - Run at the start of each hour
- @daily - Run every day at midnight UTC
- @weekly - Run at every Sunday at midnight UTC
- @monthly - Run on the 1st of each month at midnight UTC
- @yearly - Run on Jan 1st at midnight UTC
- @annually - Same as @yearly
mac log in
/var/mail/$USER
Seonglae Cho![[tip] 리눅스에서 부팅시 간단하기 시작 프로그램 등록하기](https://t1.daumcdn.net/tistory_admin/static/images/openGraph/opengraph.png)