Writing a daemon

Hal Burgiss hal at burgiss.net
Sat Sep 8 17:25:24 UTC 2007


On Sat, Sep 08, 2007 at 10:18:43AM -0500, Brian Fahrlander wrote:
>     I'm trying to write a daemon, probably in perl, to listen on a port
> and the write to a 1-wire network.  Surprisingly, the 1-wire thing is
> the easy part- it's just files.
> 
>     But I want to make the 1-wire display listen to TCP; telnet to it,
> it shows up on the screen.
> 
>     Does anyone have any history on how I might start something like this?

If you just looking for something generic, you might consider netcat
(nc), which does flexible network connection reading/writing. IIRC, I
believe xinetd can force programs to listen on specified ports as
well, if that works, eg a shell script which might just dump data upon
connect.

-- 
Hal
 




More information about the ubuntu-users mailing list