I have a script that is run by a CRON job and the output goes into a log file I have set up. Unfortunately it only grabs the STDOUT and STDERR messages.
Is there a way to add or concatenate the datetime in front of the STD* messages?
Code:
30 5 * * * $HOME/updatedb.sh 1>2 2>>/var/log/companyname/username/updatedb.sh.log
Is there a way to add or concatenate the datetime in front of the STD* messages?