>We are just having a new phone system installed which has a call recording
>data output. I'd like to capture this data and store it in a file (or
>files) for later analysis - any suggestions on the easiest way of doing it
>Could I for example put an entry in inittab to start up a process to 'cat
>/dev/ttynn >> /datafile' with a respawn option - how reliable would that be
>? If I made it a shell script, could I get cron to kill it periodically and
>have it create one file per day ? Or am I completely up the wrong tree ?
I did the same thing with a ATT Merlin phone system. I put a script in
<the same directory as userdef, rc2.d/8 ?> that copies a data file
("phonelog"), if it exists, to phonelog.old, then cats everything that
presents itself at the port to phonelog. It seems to me that the port
had to be set to 1200 baud, so I had to set up stty for that port as
If I had it to do over again I would set up the name of the log file
to be dependent on the date and time in case the system is rebooted
and the data in phonelog.old is lost, ie phonelog.jjjhhmm.