Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-18-2008, 12:42 AM   #1
Registered: Oct 2007
Posts: 71

Rep: Reputation: 15
Reading caller detail records(CDR ) records


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?

Old 11-28-2008, 03:01 PM   #2
Senior Member
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
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.

tail --follow=detail
Old 12-16-2008, 11:31 PM   #3
Registered: Oct 2007
Posts: 71

Original Poster
Rep: Reputation: 15
Thanks Ugge,

This is exactly what I was looking for.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Processing XML file (reading records) lourencojunior Linux - Newbie 2 06-28-2008 01:20 PM
MX Records asrikanth82 Linux - Software 1 10-15-2007 01:41 AM
Yast2 and Secondary reading zone records swamprat SUSE / openSUSE 1 10-10-2007 10:40 PM
DNS Zone Records - MX Records ddzc Linux - Software 8 05-24-2007 01:26 PM
1+0 records in how to disiable in DD command "1+0 records out" Kotresh Linux - Software 3 03-08-2007 08:57 AM > Forums > Linux Forums > Linux - Networking

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration