How to setup Cron Job

A sample program to setup a cron job

This cron is supposed to help spam assasin learn from the spam in your junk folder and trigger every 12 hours.

Open your Hosting Control Panel (cPanel) and scroll to the bottom of the page under ADVANCED to launch CRON 

Paste this path to this line….

/usr/local/cpanel/3rdparty/bin/sa-learn -p ~/.spamassassin/user_prefs --spam ~/mail/*/*/.Junk/{cur,new}

With the following timing: 0 0,12 * * * 

Then "Add New CRON Job" and your done.
Set up CRON

  • 15 Users Found This Useful
Was this answer helpful?

Related Articles

What are private nameservers and how do I set them up?

Private nameservers are where your domain points to our nameservers so that your customers do not...

Common SSH Commands - Linux Shell Commands

Navigating in UNIX pwd Shows the full path of the current directory ls Lists all...

Creating a Welcome message for SSH logins

Did you ever want to change or create a new login message antime someone logs into SSH? We'll...

Protecting Yourself Against Viruses & Data Loss

It is vital to ensure your computer is protected from viruses and trojans. As well as installing...

Phishing - Protect your Identity and Finances

Phishing is the name given to an increasingly common type of spam (unsolicited emails) designed...