Website-Icon DED9

What is Cron Job?

What is Cron Job?: Cron Job or Cron Jobs is a feature in Linux systems responsible for executing a specific operation at a specific schedule in a fully automatic manner. This operation can be the execution of a command or a special program or the execution of a CGI script. For example, the scheduled execution of a PHP file to send email to users will automatically send the said email at the specified time, for example, every day at 9 am. This work is done in Linux operating system through the Cron job and in Windows operating system through the Schedule task. In this article, because all the hosting services are Linux, we will preferably explain the cron job related to Linux systems. It is noteworthy that within all the hosting services, it is possible to use Cron. Jobs are active.

Using cron job in general, you can schedule and execute routine and repetitive tasks simply and completely automatically without intervention. The commands that are executed in each cron are called Cron Jobs. A very important use of on websites is for user services, which will send emails to your users or customers with each execution of the cron job. For example, e-mail to inform about the issuing of invoices, service blocking notices, service renewal notices, service information, etc., all of which can be set up and executed simply with a PHP command, and if cron job is not used, all these and many more The work should be done manually and by spending time. Even if there is not enough accuracy, problems will also occur.

In the services provided in Fa Host, Iran host users (direct admin control panel) and European host users (CPanel control panel) will both be able to use cron jobs. They can easily schedule their desired commands. . Of course, please note that using cron job and the commands you set in it requires precision and proper technical knowledge with Linux commands. So, suppose you are a beginner user. In that case, you should first get enough information about Linux commands or set your desired command for execution with the approval of the technical department in Cron.

The values ​​that can be set in cron job are: minutes, hours, days, months and days of the week. (For example, on Monday-Wednesday, the numbers 0 or 7 indicate Sunday). You can also fill the opposite field with the star character “*” to disable one of the values.
In the Cron Job section of the host, you will see the options that you will have the above and each one is a setting of the schedule and the command that you want to execute. For example, you can run a cron for Once Per Minute, Once Per Five Minutes, Twice Per Hour, Once Per Hour, Twice Per Daye: Twice a day, Once Per Day: Once every day, Once Per Week: Once every week, On the 1st and 15th of the Month: Day 1 and 15 of every month, Once Per Month: 1 time every month and Once Per Year: set once every year. And in the Command field: In this field, type the command you want to run the system. If you wish, you can read the educational article on how to create a cron job in cPanel tutorials to learn more and more fully about creating a cron job on the host

Die mobile Version verlassen