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

Cron job on Dreamhost
  • Vote Up0Vote Down dillondillon
    Posts: 4Sendy user

    I know this has been posted previously but unfortunately I am not having any resolution and need to ask for everyone's help yet again...

    I have setup a campaign and want to ensure a CRON job is setup as the email list will use up the entire SES quota and need to be automatically restarted at some stage.

    After setting up the below CRON command in Dreamhost and confirming that the path to PHP is accesible with Dreamhost support I am still getting the warning on my campaign page that CRON is not setup. I have waited quite a few hours to ensure it is not lagging.

    /usr/local/php54/bin/php /home/dilbai/sendy.hidillon.com/scheduled.php > /dev/null 2>&1

    CRON warning in Sendy

    https://drive.google.com/file/d/0BxLQVlXac6W8SWwyc09xcEU0TGs/view?usp=sharing

    CRON setup in Dreamhost

    https://drive.google.com/file/d/0BxLQVlXac6W8SjJESXJJcnk1Ukk/view?usp=sharing

  • 4 Comments
  • Vote Up0Vote Down BenBen
    Posts: 3,447Sendy support

    Hi,

    That means your cron job aren't working. Try using curl version of the cron job command instead:

    curl -L -s http://sendy.hidillon.com > /dev/null 2>&1

    Best regards,
    Ben

  • Vote Up0Vote Down dillondillon
    Posts: 4Sendy user

    Hi Ben,

    Strangely this is the command that ended up working on Dreamhost:

    /usr/local/php54/bin/php /home/sendyshell/sendy.hidillon.com/scheduled.php > /dev/null 2>&1

    Should be noted that "/sendyshell/" is not the directory where the app is installed but is the user directory that has shell access.

    Do you know if the user running the CRON must also be the user directory where the app is installed?

    DB

  • Vote Up0Vote Down BenBen
    Posts: 3,447Sendy support

    Do you know if the user running the CRON must also be the user directory where the app is installed?

    I don't think it matters though.

  • Vote Up0Vote Down dillondillon
    Posts: 4Sendy user

    Cool.

    Thanks Ben.

This discussion has been closed.
All Discussions