Tuesday, March 25, 2008

Log file with date and timestamp of cron job

Currently, I am redirecting the output of cron job to a log file. But, I want the log file to have date and timestamp, so that cron creates a new file each time it runs.

So, I tried following logics. But, they did not worked.

This is what I had done:

LOGIC 1:
15 * * * * /home/glg/bin/clc.sh >> /home/glg/logs/cronlogs/clc_`date+%Y.%m.%d.%H.%M.%S`.log 2>&1

The CRON itself did not ran.

LOGIC 2:
CLCLOG = /home/glg/logs/cronlogs/clc_`date+%Y.%m.%d.%H.%M.%S`.log

15 * * * * /home/glg/bin/clc.sh >> $CLCLOG

The cron ran but created a log file by name - "clc_`date+%Y.%m.%d.%H.%M.%S`.log", instead of clc_2008.03.24.23.15.00.log.

Do anyone know what can be the solution for this?

Thanks in advance for your help!!

Saturday, March 8, 2008

Nice Short n' Cute Game

While surfing for games online, I found a web-site by name www.miniclip.com. It provides a huge number of free games which you can play online or download and save them or publish on your web-site.

Today I played a game called "CAVEMAN". I liked it very much that I played it for 5 times. Good news is that I have not yet finished the game. This means that I can still continue to PLAY, ha ha :)



Games at Miniclip.com - Caveman
Caveman

Save your girlfriend from the evil prehistoric monsters!

Play this free game now!!