1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

How do I create a cronjob?

Discussion in 'Plesk 11.x for Linux' started by JoseSPAIN, Aug 23, 2012.

  1. JoseSPAIN

    JoseSPAIN Basic Pleskian

    14
    85%
    Joined:
    Oct 3, 2011
    Messages:
    44
    Likes Received:
    0
    How do I create a cronjob?

    If I do it from: Tools and Settings -> Scheduled Tasks -> user: root, it works perfectly this:

    */2 * * * * curl http://www.domain.es/index.php

    If I do it from the scheduled tasks of a subscription does not work, I get an email with an error What should I do?
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,572
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    Did you try specify full path to curl?
     
  3. JoseSPAIN

    JoseSPAIN Basic Pleskian

    14
    85%
    Joined:
    Oct 3, 2011
    Messages:
    44
    Likes Received:
    0
    no, what is the path?
     
  4. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    # which curl
    /usr/bin/curl
     
  5. JoseSPAIN

    JoseSPAIN Basic Pleskian

    14
    85%
    Joined:
    Oct 3, 2011
    Messages:
    44
    Likes Received:
    0
  6. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
  7. JoseSPAIN

    JoseSPAIN Basic Pleskian

    14
    85%
    Joined:
    Oct 3, 2011
    Messages:
    44
    Likes Received:
    0
  8. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
  9. JoseSPAIN

    JoseSPAIN Basic Pleskian

    14
    85%
    Joined:
    Oct 3, 2011
    Messages:
    44
    Likes Received:
    0
    I shows: /usr/bin/curl

    and if indicated, shows me: hello, what I wrote in the index.php correctly

    So I did not know what to do
     
  10. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    Skype: the*****seven
     
    Last edited: Aug 24, 2012
  11. JoseSPAIN

    JoseSPAIN Basic Pleskian

    14
    85%
    Joined:
    Oct 3, 2011
    Messages:
    44
    Likes Received:
    0
    Problem :D, use google translator, I only speak Spanish :p
     
  12. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    :) its ok I will use the same to translate
     
  13. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    First of all make sure you have enabled schedule tasks permissions to that subscription. Also check to ensure that you have a cron job already set in

    /var/spool/cron/
     
Loading...