我想安排一個bash腳本,在Windows 10的Windows上的Ubuntu上運行Bash。每當我寫入cron時,我會在終端中收到以下錯誤消息:Crontab不能在Windows上的Ubuntu上使用Bash
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
嗨@Jdamian,我該如何檢查?在我的系統中只有一個在bash中設置的unix帳戶。 – arnpry