Hi there!
My first post over here. I hope I can take my CakePHP knowledge to a higher level
I wrote a Cakephp Weather shell and can run it in my localhost via a windows task. So far so good
Now I want to run the same shell as a cron in my webhosting. I’ve read the Cakephp docs but unfortunately my host only support inserting a url to the script:
https://i.stack.imgur.com/VGLVg.jpg (hosted by StackOverflow)
So they told me to send me the script and the are willing to insert it on server level. I think I already send them 10 times another script and it never works (kind of trial and error). The say the log file shows the following error:
Nov 22 15:05:01 [server-was-here-but-newbes-can-only-post-2-links] CRON daemon: Executing (31531)
'cd /[link-to-site]/app && Console/cake Weather’
Nov 22 15:05:01 [server-was-here-but-newbes-can-only-post-2-links]CRON daemon: /bin/bash: line
0: cd: /[link-to-site]/app: No such file or directory
Nov 22 15:05:01 [server-was-here-but-newbes-can-only-post-2-links] CRON daemon: 1 processes
running
Nov 22 15:05:01 [server-was-here-but-newbes-can-only-post-2-links] CRON daemon: Executed (31531)
‘cd /[link-to-site]/app && Console/cake Weather’
I already send them the following scripts:
- */5 * * * * cd /staging.bellewaerdefun.be/app &&
Console/cake Weather
- */5 * * * * cd
/data/sites/web/bellewaerdefunbe/subsites/staging.bellewaerdefun.be/app &&
Console/cake Weather
- */5 * * * * cd /staging.bellewaerdefun.be/app &&
Console/cake Weather
- */5 * * * * /data/sites/web/bellewaerdefunbe/subsites/staging.bellewaerdefun.be/app &&
Console/cake Weather
- */5 * * * * cd
/data/sites/web/bellewaerdefunbe/subsites/staging.bellewaerdefun.be/app &&
Console/cake Weather
- ...
As you can see, it’s trial and error but nothing works. I realy don’t understand why this isn’t working. The script seems to be OK, isn’t it? Anyone who see the mistake in it?