Log Cron Job Output to File

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


        
2 views 0 copies
Log in to rate
Log in to save

Free account — save snippets into your own collections.