04pallav
9/13/2017 - 10:00 PM

dynamic timestamps for log files

dynamic timestamps for log files

0 0 * * * /some/path/to/a/file.php > $HOME/`date +\%Y\%m\%d\%H\%M\%S`-cron.log 2>&1

Rscript ~/shared/PallavCodes/TestCTK/code/test.R  2>&1 | tee shared/projects/CTKmodel/logs/CTKRun-`date +\%d-\%m-\%Y_\%H:\%M:\%S`.log