Master.csv file

Hi, i just want to know if there is some way to delete or clean the Master.csv file daily or weekly or something like that??

Thanks

will a cron job suffice ?

You can create a cron job that will remove it. If you want to just delete it you can crate a file called Master.csv and then cp it to the directory where asterisk’s Master.csv file is. (cp -rf Master.csv /directory/of/logs/)

Im sorry i dont know what `s a cron job… :blush:

And if i just create a new file and copy in that directory, when i make new calls the information will register in the file that i create?

thanks again

Yeah exactly, it will work. Cron is just like scheduled tasks in Windows.
It is the name of program that enables unix users to execute commands or scripts (groups of commands) automatically at a specified time/date

i’m using logrotate (daily) script for rotating asterisk logs and .csv