Thanks for your answare but I'am afraid it didn't help me much more than I now know that I have to play with two sessions.
However I didn't realy understand what you wanted to say with
Version 3 firmware enhanced the script commands so that you can handle IR or not
I can handle IR via both port 4444 and 5555 but I don't know wich one to use.
As I can't find any source code at your site or when I have installed your app, it don't helps me much. To start with I just need to know how apps talking to the SB are working. What interface (port 4444/5555) they are using and maybe some tips of what methods to use.
As I'am going to make the script/apps for my linuxserver, I guess an COM/.NET wouldn't help me much.
I havn't made programs talking to devices via telnet before so some tips about that would be nice to.
When I searched around I found out that expect in TCL is a good tool to use but I havn't worked with TCL before so it's kind of hard to start without any examples.
How ever, I want to thank mcfh for his fast answare.