I\'ve written a big sql script that creates a CSV file. I want to call a cronjob every night to create a fresh CSV file and have it available on the website.
Say for
Why not rm -f /home/sites/example.com/www/files/backup.csv in the script ran by cron?
rm -f /home/sites/example.com/www/files/backup.csv
You can run this from inside mysql. Just escape to the shell with \! For example:
\!
Mysql> \! rm -f /home/sites/example.com/www/files/backup.csv