Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Add crontab via xml api

Discussion in 'General Discussion' started by jerome.chevreau, Nov 30, 2010.

  1. jerome.chevreau

    Aug 26, 2010
    Likes Received:
    Trophy Points:
    Hi there,

    I am going nuts trying to add a cron job.
    I can read the cron on a user but when it comes to add it says Added successfully but cannot be found. trying to add the same cron is disallowed as it already "exists".
    Below is what i am using:
    ***** List Cron - Works

    ***** Add Cron - Not Working
    /xml-api/cpanel?user=$cpuser&xmlin=<cpanelaction><module>Cron</module><func>add_line</func><args>COMMAND TO THE FILE</args><args>1</args><args>1</args><args>1</args><args>1</args><args>1</args></cpanelaction>

    Does anybody know what can be done.

    Thanks for any help,


Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice