Hi, I have a customer who is running Asterix PBX, all calls are recorded and stored as wav files on the server, how can i write an autodelete script to delete files when they reach 30 days old hope someone can help me
Try a PBX orientated forum, this is a web development forum. There are a few asterix forums out there
You can use the find command to list the files that are 30 days old and then pass it to rm -f command. The find command is find /path/to/wav/file/directory -type f -name *.wav -mtime +30 | xargs rm -f This will search any .wav files older than 30 days in the specified directory and will delete it from the server. You can write down this command in a file and execute the file on daily basis using a cronjob.