【发布时间】:2017-05-07 23:01:19
【问题描述】:
我正在尝试安排一个 bash 脚本在 Windows 10 的 Windows 上的 Ubuntu 上与 Bash 一起运行。每次我编写 cron 时,我都会在终端中收到以下错误消息:
crontab: installing new crontab
/var/spool/cron/: mkstemp: Permission denied
crontab: edits left in /tmp/crontab.4q0z3i/crontab
这是 crontab 条目的样子:
# m h dom mon dow command
27 10 * * * /home/admin/test.sh > /home/admin/logs/test.log 2>&1
这里到底发生了什么?
【问题讨论】:
-
你的用户有权限写
/var/spool/cron吗?您的用户是否有权使用cron? -
嗨@Jdamian,我如何检查这个?在我的系统上,bash 中只设置了一个 unix 帐户。
标签: windows bash ubuntu cron windows-subsystem-for-linux