Log Cron Job Output to File
Redirect a cron job's output to a log file so failures leave a trace.
Redirects both stdout and stderr from a cron job to a log file. Without redirection, cron attempts to email output which often results in silently dropped output.
When you need this: For any cron job where you need to audit output or debug why a job failed.
Variables
Command
6 views
0 copies
Related in this category
Log in to save
Free account. Save snippets into your own collections.