Get answers quicker by searching

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

  • Ben January 2013
Cron job not working when run in perl and set at every 5 minutes
  • When I try to configure the cron job with the given code I get an error

    Number found where operator expected at /mnt/stor9-wc1-dfw1/627363/www.thedoersproject.com/web/content/crons/autoresponder.sh line 1, near "/1" (Missing operator before 1?) Bareword found where operator expected at /mnt/stor9-wc1-dfw1/627363/www.thedoersproject.com/web/content/crons/autoresponder.sh line 1, near "/dev/null" (Missing operator before null?) Number found where operator expected at /mnt/stor9-wc1-dfw1/627363/www.thedoersproject.com/web/content/crons/autoresponder.sh line 1, near "null 2" (Do you need to predeclare null?) syntax error at /mnt/stor9-wc1-dfw1/627363/www.thedoersproject.com/web/content/crons/autoresponder.sh line 1, near "/1" Execution of /mnt/stor9-wc1-dfw1/627363/www.thedoersproject.com/web/content/crons/autoresponder.sh aborted due to compilation errors.

    the script is in .sh and run in perl

    so I've tried to run directly the php file with the cron using php language, everything seams to work I see the autoresponder panel but when i set it up no mail is sent neither subscribing by form or api

    my hosting rackspace don't use classical cron they have a panel to configure them, where you choose the language and the timeframe It is not possible to set every minute so i've set the minimum that is 5 minutes.

    Any suggestion?

  • 1 Comment
  • Vote Up0Vote Down BenBen
    Posts: 3,484Sendy support

    Hi @piermaria

    Use the cron job line displayed in the instructions. The command can only be executed by php. Also, it'll only work when executed every 1 minute as described in the instructions.

    If you set anything else other than */1 (per minute), it's not supported nor tested and you may run into problems.

    Here's a thread on using external cron services if you need http://sendy.co/discussion/328/can-i-run-cron-jobs-from-an-external-service-/p1

    Thanks.

    Ben

This discussion has been closed.
All Discussions