Writing a daemon

Jack Bowling jbinpg at shaw.ca
Mon Sep 10 04:47:39 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?
>

The one I use is ttywatch, originally written by then-Red Hat employee
Michael Johnson. Runs as a daemon to which you give it various parameters
such as serial port to monitor, speed, log file name, etc. Googling for ttywatch should bring you right to the tarball. Latest is ttywatch-0.14. 

I use it at work in combination with a perl script to get pressure readings
off various barometers. Works great. Not sure from your email if you want
to both read and write to a port but with ttywatch and perl you can glue
anything together.

Jack 




More information about the ubuntu-users mailing list