Alternative to crontab

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rune
    Junior Member
    • May 2016
    • 2

    Alternative to crontab

    Thanks for a very cool pies of work, I'm impressed of what you have accived with Espo.

    I choose EspoCRM as I am currently on a shared hosting invironment. And it seems to be the only CRM out there (that are still very active on the development front), that is possible to install on a shared hosting environment with only the most basic PHP modules installed and limited access to server configs. But:

    I don't have access to shell or crontab, my host only provide a very limited cron job feature (Once a day a script can go to a specified file path). So, is there any way around this?
    * * * * * /usr/bin/php -f ../espo/cron.php > /dev/null 2>&1
    • Could I have an external script go to mydomain.dk/espo/cron.php
    • Or make/upload another script and call it externaly scheduled cron like service.

    Thanks in advance
    Rune

  • SpeedBullet
    Senior Member
    • Mar 2016
    • 123

    #2
    If you have access to cpanel, you should also have a cron feature there.

    Comment

    • rune
      Junior Member
      • May 2016
      • 2

      #3
      I'll try and use that, even thou I'm only able to make it run once a day. If it's not enough for me, I think I found a solution, where a few line is passed out in cron.php and it will be accessible from an external cron script, even thou it will compromise the security a bit.

      Thanks.

      Comment

      • SpeedBullet
        Senior Member
        • Mar 2016
        • 123

        #4
        Originally posted by rune
        I'll try and use that, even thou I'm only able to make it run once a day. If it's not enough for me, I think I found a solution, where a few line is passed out in cron.php and it will be accessible from an external cron script, even thou it will compromise the security a bit.

        Thanks.
        Get another webhost. There is no reason why they should restrict cron usage this much. Or you could try to contact customer service and request that they change the configuration for your account.

        Comment

        • yuri
          Member
          • Mar 2014
          • 8560

          #5
          A straightforward solution is to remove CLI check in cron.php and run cron.php file externally some way.
          If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

          Comment

          • Talbot
            Junior Member
            • Nov 2014
            • 6

            #6
            For "externally some way", using online cron job like Easycron as an alternative is a good idea.

            Comment

            Working...