ok so I'm obviously doing something wrong - but I can't figure it out..... Any help is appreciated....!! 00 1 * * 5 [ /tmp/cronrun/.lastupdate -nt /home/MYDIR/public_html/file.csv ] || ( curl http://domain.com/file.php?cron=2 ; touch /tmp/cronrun/.lastupdate ) Code (markup): It keeps running but the csv hasn't changed since last run - what am I doing wrong? thanks!
.lastupdate? Don't you need to call the PHP command line? something like this? /usr/bin/php /home/username/example.com/myscript.php
I don't know - hence why I need help...lol the cron works and executes the script as desired but it doesn't check to see if the file has changed. It just keeps running.
content of the script is irrelevant - the issue was the temp log - the script was working as it should. no worries now though as I figured out the issue and all is resolved.