i tested with direct power supply (12 v DC adapter, 1 A), and also with a 9v battery. The arduino works fine.No problem in that. But the program doesn't get executed as it usually does unless or until we erase the program.
@UKHeliBob
thats y i gave the delay. please see the comment..mentioned 5 min.. then it jumps off to timer as it usually does..if i am wrong at somepoint, please do tell me.