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, |
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 |
Thanks Ugge,
This is exactly what I was looking for. |
All times are GMT -5. The time now is 12:34 AM. |