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.

Run cli command remotely?

Discussion in 'cPanel Developers' started by MACscr, Apr 24, 2012.

  1. MACscr

    MACscr Well-Known Member

    Joined:
    Sep 30, 2003
    Messages:
    190
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Is there a generic api call or something that can be used so it that i can remotely run cli commands (third party, so specific api command wont exist) using the whmc access key? This is something that I am scripting (web based) and am just looking into what my options are. Thanks!
     
  2. cPanelDavidN

    cPanelDavidN Integration Developer
    Staff Member

    Joined:
    Dec 17, 2009
    Messages:
    571
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    No, there is not a cPanel API call that will allow/perform arbitrary commands.

    There are many classes/libraries/modules that provide a pure language or C level wrapper to SSH. Not sure what language you're using, but I'm sure there's something out there.

    Regards,
    -DavidN
     
  3. KostonConsulting

    KostonConsulting Well-Known Member

    Joined:
    Jun 17, 2010
    Messages:
    255
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    San Francisco, CA
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page