@patdelprat24
Profil
Registered: pred 2 years, 9 months
CronJobs Explained
Cron is a time-based job scheduler in Unix or Unix-like laptop operating systems. You can use Cron to schedule jobs, i.e. to execute instructions or shell scripts at specified occasions, dates, or intervals. This permits you, for example, to automate system maintenance or administration, to download files from the internet, or to ship emails on a daily basis. It's a daemon, i.e. a background process that always runs on the server. The tasks Cron is supposed to perform are called CronJobs. Initially, the name Cron comes from the Greek god of time "chronos".
Application of CronJobs
CronJobs can be used for single instructions or for the automated execution of periodically recurring sequential tasks, e.g. for cleaning up databases by removing obsolete entries, log files, and feedback, or for creating common statistics on the number of users of a website.
Other applications embody updating RSS feeds, publishing new content to a website on a specific date, generating a number of invoices, or automated newsletter distribution. Likewise, the backup of a database may be scheduled utilizing CronJobs.
Construction and syntax of a CronTab file
Cron makes use of special configuration files, so-called CronTab files, which contain a list of cron jobs to be executed. CronTab stands for Cron Table. Every line in the CronTab file represents a CronJob. It looks just like a row of columns separated by a space. Every line specifies when and the way often a particular command or script should be executed.
In a CronTab file, empty lines or lines starting with , areas, or tabs are ignored. Lines starting with are considered consumer comments.
Active lines in a CronTab either declare an environment variable or define a CronJob. Feedback should not allowed in active lines.
The CronTab file may be accessed in a command-line interpreter by typing "crontab-e". The commands in the CronTab file and their runtime are checked by the Cron daemon, which executes them within the system background.
The primary five columns include time values which define when a command must be executed. These are, from left to proper:
Minute, specified as 0 - fifty nine
Hour, specified as 0 - 23
Day, specified as 1 - 31
Month, specified as 1 - 12
Weekday, specified as 0 - 7, zero or 7 are Sundays
For each of these values, the wildcard "*" can be utilized for execution at any time (i.e. at any minute, hour, day, month or weekday), "*/n" for execution each n (minutes, hours, etc.) and "n,x,y" for execution on / at n, x or y. The last column specifies the relative or absolute path of the script to be executed. The CronJob is performed when the minute, hour, month, and day of the month or weekday match the present time.
Significance for on-line marketing
With CronJobs, you can automate various tasks in on-line marketing, thus growing efficiency. In addition to automating time-consuming tasks, CronJobs can be utilized, for example, to create visitor statistics for a website and automatically send these to a recipient at certain intervals. In conjunction with CMS, CronJobs can be utilized to automatically calculate metrics or send newsletters on particular dates as part of marketing campaigns.
Website: https://cronjob-manager.com/cronjob/create-cron-job/
Diskusné Fóra
Počet vytvorených tém: 0
Počet reakcií: 0
Rola: Účastník (Participant)