Join the community today
Become a Member

Problem with creating cronjob for Sendy

Discussion in 'System Administration' started by Andy, Dec 27, 2014.

  1. Andy

    Andy Active Member

    433
    66
    28
    Aug 6, 2014
    Ratings:
    +90
    Local Time:
    5:26 PM
    I'm installing Sendy to send my email and according to their instruction, I need to create cronjobs to schedule list import as well as mailing.

    Code:
    php /home/nginx/domains/quantnet.com/public/sendy/import-csv.php > /dev/null 2>&1
    */1 * * * * php /home/nginx/domains/quantnet.com/public/sendy/import-csv.php > /dev/null 2>&1
    After I did those commands, and run less /etc/crontab or crontab -l, it does not show any cronjob.

    I even use the absolute path for php which is /usr/local/bin/php
    I'm curious to see if there is a specific way to create cronjob in centminmod?
     
  2. Andy

    Andy Active Member

    433
    66
    28
    Aug 6, 2014
    Ratings:
    +90
    Local Time:
    5:26 PM
    Solved.
    Edit /etc/crontab/ and add the line to the bottom
    */1 * * * * php /home/nginx/domains/quantnet.com/public/sendy/import-csv.php > /dev/null 2>&1
     
  3. eva2000

    eva2000 Administrator Staff Member

    40,661
    9,034
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,908
    Local Time:
    7:26 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    how are you editing crontab jobs ?

    Code:
    crontab -e
    is correct command to edit and initialise new crontabs :)
     
    style="display:inline-block;min-width:400px;max-width:970px;width:95%;height:90px" data-ad-client="ca-pub-6669518204467592" data-ad-slot="4024536743" data-ad-format="auto">
  4. eva2000

    eva2000 Administrator Staff Member

    40,661
    9,034
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,908
    Local Time:
    7:26 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    @Andy I just bought a sendy license as well Sendy to setup an official newsletter for Centmin Mod related mailings :)

    Was wondering what purpose you using import mailing for exactly ?
     
  5. Andy

    Andy Active Member

    433
    66
    28
    Aug 6, 2014
    Ratings:
    +90
    Local Time:
    5:26 PM
    I have a 30K list from my forum so I need to import it to my sendy. They use a cron job to schedule the importing.
     
  6. eva2000

    eva2000 Administrator Staff Member

    40,661
    9,034
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,908
    Local Time:
    7:26 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    ah i see.. just stumbled into the sendy setup cron info myself :D