How to setup Cron Job

A sample program to setup a cron job

This cron is supposed to delete the spams from your mail box at specific time (at 12:10 pm).

Take this path

Home/username/mail/domainname/

Paste this path to this line….

10 12 * * * rm -rf /home/jbalipro/mail/domain.com/linkmaster/.spam/cur/*
10 12 * * * rm -rf /home/jbalipro/mail/domain.com/linkmaster/.spam/new/*

Go to spool/var/cron and there will be a file with that specific user on which your want to setup a cron job.

Go that file and open it in vi.
Paste the above line in that file and run the following command

Service crond restart

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Do you offer Server Side Includes (SSI)?

Server Side Includes (SSI) is enabled on all of our servers. You just need to be sure that you...

What happens if I exceed my allocated bandwidth?

You will receive an automatic e-mail message warning you that you have reached 80% of your...

Why don't you offer unlimited bandwidth?

There is no such thing as unlimited bandwidth. Any company that promises you unlimited bandwidth...

Will I be able to check my emails when I am away from my home/office computer?

Yes, we provide all our customers with their own Webmail access. What this means is that you can...

Will you place any ads on my site?

Not at all. We do not place any advertisements on your site whatsoever. No banners, no annoying...