获取 cron 日志以添加到文件中,而不是覆盖它

sin*_*inθ 19 linux ssh cron

首先,如果这是错误的堆栈交换,我很抱歉,但它似乎是正确的。

这是我现在的 crontab:

MAILTO=****@gmail.com
10,30,50 * * * * ~/webapps/****/apache2/bin/start
*/10 * * * * /usr/local/bin/python2.7 ~/webapps/****/WR/cron.py > ~/webapps/****/WR/cron.log 2>&1
Run Code Online (Sandbox Code Playgroud)

但是每次将输出放入 cron.log 文件时,所有旧内容都会被覆盖。我该如何阻止?或者,如果不可能,有什么替代方法?

注意:****URL 和电子邮件中的 用于隐藏个人信息。

Jay*_*Jay 41

交换>>>

>  = write to file, overwriting what was already there
>> = append to file, create if it doesn't exist
Run Code Online (Sandbox Code Playgroud)

IE:

MAILTO=****@gmail.com
10,30,50 * * * * ~/webapps/****/apache2/bin/start
*/10 * * * * /usr/local/bin/python2.7 ~/webapps/****/WR/cron.py >> ~/webapps/****/WR/cron.log 2>&1
Run Code Online (Sandbox Code Playgroud)