crontab 的定时任务执行的脚本,有办法把执行情况生成日志吗?


crontab 执行的脚本任务,脚本中每条指令的执行结果需要记录下来存档,有办法吗?

crontab 日志

习惯性沉默 10 years, 4 months ago

1 * * * * /path/to/shell/script >> /path/to/log/file

Soooo answered 10 years, 4 months ago

areorer answered 10 years, 4 months ago

Your Answer