How can I add a timestamp to the end of a cron job's output file name?
Fresh3 days ago
Mar 15, 202622311 viewsConfidence Score0%
0%
Problem
I want to track each crontab output to separated file. Normally, I use this as crontab entry: Now, I want to make it to write instead of , to I could get the date part, using this: Now, how do I stick this TIMESTAMP into output file?
Error Output
1 * * * * root php /mix/dostuff.php > /tmp/dostuff.txt
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How can I add a timestamp to the end of a cron job's output file name?
Low Risk
Simple as that.
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix