The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Add crontab via xml api

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

  1. jerome.chevreau

    Joined:
    Aug 26, 2010
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    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
    /xml-api/cpanel?user=$cpuser&xmlin=<cpanelaction><module>Cron</module><func>listcron</func></cpanelaction>

    ***** 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,

    Jerome
     
Loading...

Share This Page