📜  以特定用户身份运行 cron 作业 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:29.341000             🧑  作者: Mango

代码示例2
# Crontab Running as a Specific User
# Only /etc/crontab and the files in /etc/cron.d/ have a username field. In that file you can do this:
1 1 * * * username /path/to/your/script.sh