[asterisk-users] cdr_custom outout to serial port
Tilghman Lesher
tilghman at mail.jeffandtilghman.com
Sat Apr 12 08:46:32 CDT 2008
On Saturday 12 April 2008 07:22:46 Col Ferguson wrote:
> Thanks for the idea Zoa.
>
> I've got the cronjob working every minute now using
>
> if [ -f /var/log/asterisk/cdr-custom/Master.csv ]
> then
> cd /var/log/asterisk/cdr-custom
> mv -f Master.csv out1.csv
> cat out1.csv > /dev/ttyS0
> fi
>
> Using tail -f would give me the realtime output, but a few questions as a
> real linux novice;
> What would be the best way to start this up ?
> How would I monitor it to make sure it hasn't died, and how to restart ?
Best way would be to use inittab, with respawn, if it dies. Note that on very
recent Linux distributions, such as Ubuntu, /etc/inittab has been replaced
with a directory, /etc/events.d/
--
Tilghman
More information about the asterisk-users
mailing list