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!

crontab -u (can something go here to chack all users) -l

Discussion in 'General Discussion' started by WebHostPro, Jun 14, 2005.

  1. WebHostPro

    WebHostPro Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,655
    Likes Received:
    15
    Trophy Points:
    318
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    Twitter:
    crontab -u username -l

    Rather then check one user at a time, is there a way to get a report for all users on the servers cron jobs?

    I think they can be ran out of the spool from time to time so I thought this might be safer when tracking down all crons on the server.

    Thanks, Chaze
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,574
    Likes Received:
    3
    Trophy Points:
    343
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    Goto /var/spool/cron

    cat *

    That will show all cronjobs listed by users including root.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,366
    Likes Received:
    6
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    Nice trick David.

    Also like the attached shell script.
     

    Attached Files:

  4. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,574
    Likes Received:
    3
    Trophy Points:
    343
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    Thanks, nice script too. I think I may add that to my list of usefull scripts.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. WebHostPro

    WebHostPro Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,655
    Likes Received:
    15
    Trophy Points:
    318
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    Twitter:
    Thanks, it's strange though that my log reports say there is cron job for a user but it's not in cpanel or the spool directory. Or ther cron folders. :eek:

    --------------------- Cron Begin ------------------------

    Commands Run:
    User blahblah:
    personal crontab edited: 1.5 Time(s)
    personal crontab listed: 9 Time(s)
    User blahblah2:
    personal crontab listed: 2 Time(s)

    But nothing is listed anywhere for these.

    Thanks again,

    Chaze
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #5 WebHostPro, Jun 16, 2005
    Last edited: Jun 16, 2005
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