📜  cron 管道错误输出到文件 - 无论代码示例

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

代码示例1
// Adding '2>&1' will get cron to output errors to the file as well
// Credit to RanRag on stackoverflow

*/1 * * * * /home/ranveer/vimbackup.sh >> /home/ranveer/vimbackup.log 2>&1