LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Reading caller detail records(CDR ) records (https://www.linuxquestions.org/questions/linux-networking-3/reading-caller-detail-records-cdr-records-684235/)

eliufoo 11-18-2008 12:42 AM

Reading caller detail records(CDR ) records
 
Greetings,

I'm having a minor problem in reading continueosly CDR records generated Cisco voice gateways.

We have script that generates a new file named *detail* every 15 minutes. After 15minutes, existing detail file is zipped and a new detail files is created. This circle is continous.

Currently, I'm actively reading the file using *tail -f*, however, with every new circle, I need to re-run the *tail -f*. In order to read the new detail file.

Is there a way to make tail -f to continous read the *detail* file without been affected by a new circle?

Regards,

ugge 11-28-2008 03:01 PM

This behaoir is because tail by default follows the file descriptor, and not the filename. By using --follow=<name> instead you get what you want.

Code:

tail --follow=detail

eliufoo 12-16-2008 11:31 PM

Thanks Ugge,

This is exactly what I was looking for.


All times are GMT -5. The time now is 12:34 AM.