Monday, April 24, 2006

A better way to spend lazy Sunday morning

It is always interesting when you hack around something. BSNL DataOne has a scheme by which anything downloaded between 2 am to 8 am is unaccountable. This scheme helps you to get some really heavy downloads from the net. It is pretty easy when you just need to schedule some download in that time. But the hiccup is that the router session should begin after 2 am.

So myself and Gops came with the idea of hacking this up. Gops knew that router CLI interface has option to restart the session. We wrote a simple perl script which connects to the router CLI telnet interface and restarts the session. We used Windows Task Scheduler to run this script after 2 am. The happy download hours are back in our control now.

No comments: