Thursday, April 27, 2006

Non interactive modem telnet commands

If your modem supports telnet (most do), you can use this perl script to issue commands to the modem (reboot being the most used :P)


#!/usr/bin/perl

# Define values
$usercommand = "reboot";
$host = "192.168.1.1";
$username = "myusername";
$password = "mypasswd";

use Net::Telnet ();

$t = new Net::Telnet(); # or (Timeout => 10, Prompt => '/# $/');
$t->open($host);
$t->login($username, $password);
@output = $t->cmd(String => $usercommand,
Errmode => "return",
Timeout => "1" );

### Debug - print output ###
#print @output ;

Tuesday, April 04, 2006

I'm back!

Yes! I'm gonna bug everyone with all my problems and rants etc. etc. and other worthless (or sometimes worthy) things in life.

And as a starter... Firefox sucks !
Hah! I bet you weren't expecting that... but.. its slow, sluggish and huge memory hog. Unfortunately, I have to use it because blogger post creation isn't compatible with Konqueror.