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.

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

Discussion in 'General Discussion' started by DWHS.net, Jun 14, 2005.

  1. DWHS.net

    DWHS.net Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,569
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    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
     
  2. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

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

    cat *

    That will show all cronjobs listed by users including root.
     
  3. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,367
    Likes Received:
    5
    Trophy Points:
    38
    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,578
    Likes Received:
    3
    Trophy Points:
    38
    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.
     
  5. DWHS.net

    DWHS.net Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,569
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    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
     
    #5 DWHS.net, Jun 16, 2005
    Last edited: Jun 16, 2005
Loading...

Share This Page