El' Cid - aka Caller ID, aka cid
Just a quick lil proggy to log caller id from your modem. The log file is written in cvs (comma seperated variable) format so you can easily parse into other programs, such as cgi scripts for web display. Named after my bird, Sid(ney).
Installation
- edit the header file and make sure it agrees with your configuration (cid.h)
- make
and that's it. no installation :)
Usage
./cid
Nothing special, just run it and each call will be written
into the log file
logfile format (cid.log)
DATE,TIME,NAME,NUMBER,UNIX_TIME where
DATE = 4 digit date in MMDD format
TIME = 4 digit time in 24hr format
NAME = Name of caller if available or the following:
'P' = private
'O' = out of area
NUMBER = 10 digit format with area code + prefix + suffix
UNIX_TIME = Time in time_t format as defined by TIME(2)
Kudos
the peeps who put together and contribute material to the linux
documentation project.
The Serial-Programming HOWTO on LDP
The people at Wrox Press for one of my favorite books
"Beginning Linux Programming"
Contact Info
Feedback is always welcome. Please send me any changes or enhancements.
sporadic@linux.wku.edu
http://linux.wku.edu/~sporadic
