Cron - seems simple but doesn't work

vps

#1

http://antiquegunstempsite.com/index.php/account/closeAllEndAuction/

works
but in cron, it’s a no go.

wget http://antiquegunstempsite.com/index.php/account/closeAllEndAuction/ > /dev/null

Hints?


#2

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


#3

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


#4

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:


#5

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.


#6

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:173.236.169.222 - - [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:173.236.169.222 - - [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:173.236.169.222 - - [29/Oct/2015:00:00:01 -0700] “GET /index.php/account/getDailyTransactionReport HTTP/1.1” 200 525 “-” “Wget/1.13.4 (linux-gnu)”