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!

about enabling crontab [moved]

Discussion in 'General Discussion' started by zangief, Oct 2, 2006.

  1. zangief

    zangief Registered

    Joined:
    Oct 2, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    151
    I was asked to make automated email subscriptions, so i thought of using cron job. i already created a php file that can filter emails as weekly or daily, and send respective subscriptions. i even added a cron job already. the only thing left for me to do is enable the cron tab.

    i was supposed to type "crontab -e" to the SSH Access page in the cPanel. however, being relatively new to cron jobs, i dont know where to type it in.

    where among these 3 should i type it in? Manage SSH Keys, Connect using SSHTerm, or Connect using Java Telnet Applet?
     
  2. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    166
    crontab -e would be used in an ssh session and not cpanel itsself.
    That will edit the cronjobs for root, provided you have root access.
     
  3. zangief

    zangief Registered

    Joined:
    Oct 2, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    151
    ssh session? i hate to sound like a total idiot but how can i make those?
     
  4. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    166
    I strongly suggest hiring an administrator to setup what you are needing.
    Explaining how to access ssh when you are not familiar with these
    tasks could easily result in a dead server.
     
  5. Anne

    Anne Member

    Joined:
    Oct 4, 2006
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    151
    Following is the general setting of cron which you can give from shell or cpanel

    crontab -e
    min hour day of month month day of week command /file to run
    0 1 * * * Means cron will run daily at 1:00 AM
    0 2 * * 6 Means cron will run weekly at 2:00 AM
     
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