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!!

Thursday, March 6, 2008

Fake E-Mail alert - Beware!!

I received this e-mail alert mentioning about new security update from HDFC Bank, India, as it speaks out. But, when I observed the mail deeply, I figured out that it is a fake mail and then, forwarded to HDFC Bank (genuine one :).

I am posting a copy of it over here, so that you can be aware of such fradulent mails. If you receive this type of mails, DONT EVER CLICK ON THE LINKS PROVIDED IN THE MAIL, and also DONT DO THE ACTIONS THAT WERE ASKED in it.



To be safe from these type of mails, HDFC Bank has specified a list of measures that its customers can take. It is @ http://www.hdfcbank.com/common/onlineservices/security/phishing_info.htm

Please do forward these kind of fradulent mails to hdfc @ fake.email@hdfcbank.com (as specified in above URL).

SAFE BANKING TO ONE AND ALL!!!