On my server I have the script that runs (using a cronjob) every midnight and downloads a zip which contains a csv file from an url. The csv file is updated daily. Following is my (simple) script:
#!/usr/bin/env bash rm -f /home/croaz/public_html/tmp/flatfile_rom_air.* wget --no-cache --user user_name --password password http://www.url.com/DownloadArea/ROM/flatfile_rom_air.zip -P /home/croaz/public_html/tmp/ && unzip flatfile_rom_air.zip -d /home/croaz/public_html/tmp/
However, I get a very weird behavior. While the zip package contains the updated csv file, the unzipped (csv) file is the same as it was when I first run the script (a couple a months ago). It behaves as the unzip would use some cached copy of the csv file. If I download the zip archive from my server on my local PC, and unzip it there, everything works as it should be (I get the updated file). What am I missing?