Is there a way I can include the command in the output when I'm logging to a file? For example
* * * * * date && /path/to/php /path/to/script.php >> cron.log 2>&1
Would give me
Wed Oct 2 14:56:50 PDT 2013 output from script
How can I add the cronjob that just ran to the log? e.g.
Wed Oct 2 14:56:50 PDT 2013 /path/to/php /path/to/script.php output from script
I'm looking to add this in the crontab and not in the script.