Cron output & logging
A basic solution:
use
$()
for executingdate
command and return outputformat datetime to UTC, escape the
%
character with\
add
2>&1
at the end for streaming bothstdout
andstderr
into that log file
Example:
Output:
Reference
Last updated