Skip to main content

Cronjob

More
10 years 11 months ago #2311 by Rene367
Cronjob was created by Rene367
My cronjobs will not start

i used this example within brackets and without brackets but the job will not start

0 4 * * * (cd JOOMLA-ROOT/administrator/components/com_datafeeds;php feedcron.php)
what can be wrong

Please Log in to join the conversation.

More
10 years 11 months ago #2316 by redactie
Replied by redactie on topic Re: Cronjob
Mostly you will receive email from the cronjob with to output or error messages.

'does not start' is a bit disambiguous

did you replace JOOMLA-ROOT with the real path?
does you host allow command line PHP ?

Please Log in to join the conversation.

More
10 years 11 months ago - 10 years 11 months ago #2319 by Rene367
Replied by Rene367 on topic Re: Cronjob
Yes my host provides me with access.
I had not set up my emailadress, done that today.
get error message
Could not open input file: feedcron.php

/bin/sh: line 0: cd: /var/www/vhosts/xxxx.nl/httpdocs/webshop/administrator/components/com_datafeeds: No such file or directory
Could not open input file: feedcron.php
Last edit: 10 years 11 months ago by Rene367.

Please Log in to join the conversation.

More
10 years 11 months ago #2320 by redactie
Replied by redactie on topic Re: Cronjob
looks like the path /var/www/vhosts/beginop.nl/httpdocs/webshop/administrator/components/com_datafeeds is not correct

and it should be ../com_datafeeds/cron

Please Log in to join the conversation.

More
10 years 11 months ago - 10 years 11 months ago #2325 by Rene367
Replied by Rene367 on topic Re: Cronjob
i used path.php to find the correct path

well hopefully was this last piece the wrong thing so if i am correct i must use


/var/www/vhosts/xxxx.nl/httpdocs/webshop/administrator/components/com_datafeeds/cron

is that within or without brackets

( cd //var/www/vhosts/xxxp.nl/httpdocs/webshop/administrator/components/com_datafeeds/cron)
Last edit: 10 years 11 months ago by Rene367.

Please Log in to join the conversation.

More
10 years 11 months ago - 10 years 11 months ago #2331 by Rene367
Replied by Rene367 on topic Re: Cronjob
it works through a wget call
Last edit: 10 years 11 months ago by Rene367.

Please Log in to join the conversation.

Time to create page: 0.497 seconds