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!

Get cronjobs via php script

Discussion in 'General Discussion' started by tryingnewthings, Jan 28, 2019.

  1. tryingnewthings

    tryingnewthings Registered

    Joined:
    Jan 28, 2019
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Ljubljana
    cPanel Access Level:
    Website Owner
    Hello,

    is there a way to retrieve all running cron jobs on cpanel via a script?
    Any help on how to achieve this is very welcome.
    Thanks in advance.
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,766
    Likes Received:
    440
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @tryingnewthings


    Do you mean actively running or just cron's added to cPanel accounts? You can see the list of crons at
    Code:
    /var/spool/cron
    For all accounts present on the server.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. tryingnewthings

    tryingnewthings Registered

    Joined:
    Jan 28, 2019
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Ljubljana
    cPanel Access Level:
    Website Owner
    How do I access this via script @cPanelLauren?

    I want to get my Current Cron Jobs, those that I see/add on cPanel GUI
     
    #3 tryingnewthings, Feb 2, 2019
    Last edited by a moderator: Feb 2, 2019
  4. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    1,088
    Likes Received:
    441
    Trophy Points:
    113
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    cPanelLauren likes this.
Loading...

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