📜  cron 更改工作目录 - Shell-Bash 代码示例

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

代码示例1
Add cd /home/xxxx/Documents/Scripts/ 
if you want your job to run in that directory. 
There's no reason why cron would change to that particular directory. 
Cron runs your commands in your home directory.