Cron - seems simple but doesn't work



but in cron, it’s a no go.

wget > /dev/null



Use the full path to wget. You can use ‘which wget’ to find that path.


Thanks, I was just thinking that and made the change before I came here to check for a reply :wink:


Well that’s not it, unfortunately this isn’t my code I don’t want to make it verbose so I’ll do a touch to make sure cron itself is “working” but it’s hard to believe that it wouldn’t be :wink:


Drop the output redirection off the end and make sure a valid email address is supplied for cron ( valid email on you dreamhost account is going to work best ). The emails should give some clues, and you should get one for every scheduled run.

Also you do need to use full paths, so if it’s still not working then you had multiple problems.


They INSISTS that’s not it but I removed the redirect to null and sent the email output to me, we will see it IS running they say it’s not even running…

I think they are mistaken :wink:
I’m not a dope, I just don’t want to touch someone else’s software.

grep getDailyTransactionReport *
access.log.0: - - [29/Oct/2015:00:00:01 -0700] “GET /index.php/account/getDailyTransactionReport HTTP/1.1” 200 525 “-” "Wget/1.13.4 (linux-gnu)"
access.log.2015-10-27: - - [28/Oct/2015:00:00:01 -0700] “GET /index.php/account/getDailyTransactionReport HTTP/1.1” 200 525 “-” "Wget/1.13.4 (linux-gnu)"
access.log.2015-10-28: - - [29/Oct/2015:00:00:01 -0700] “GET /index.php/account/getDailyTransactionReport HTTP/1.1” 200 525 “-” “Wget/1.13.4 (linux-gnu)”