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.

root level cron job ?

Discussion in 'General Discussion' started by JohnBB, Jan 30, 2005.

  1. JohnBB

    JohnBB Member

    Joined:
    Dec 12, 2004
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Hello All:

    How do I set up a simple root level cron job? (In this case to delete the content of the /tmp folder once a week?) WHM has no such link ... and cPanel would be on the domain level only. Where can I add such a job as server admin via WHM, if at all?

    Thanks!
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You have to do it from root shell via SSH using the command:

    crontab -e

    This will throw you into an editor (usually pico) where you can add new entries with the correct format.

    For help on format, check:

    man crontab
    man crontab -S 5
     
Loading...

Share This Page