Summary of Chapter 4

Consumption is an active and creative endeavor. Such as yelling at the TV or scrolling to and from social medias sites. The personal identity story. These are our personal triumphs, regrets, and…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




How I Schedule Jobs using Crontab

Cron is a program that allows Unix users to automatically run tasks (scripts, commands, software…) at a pre-defined date and time.
These tasks are called cron jobs and can be used for example backing up data, sending alerting email, run scripts…

The cron jobs can be scheduled to run by a minute, hour, day of the month, month, day of the week, or any combination of these.

Everything we are going to do will be done on the command line. So open your terminal.

The following command line displays the contents of the cron table for the current user:
crontab -l

Here, we have only 6 jobs running for this user.
All the lines that start with ‘#’ are commented and are only used to give additional information to readers.

Each job respects following rules:

So in our example:

To edit the content of the cron table, you can use the following command line : crontab -e
This command launches the default editor. The editor then displays the current cron table.
When crontab is launched for the first time, the table is blank.

The command crontab -r has the effect to delete the cron table.

Thanks for reading! Happy coding.

Are you new on Medium ?
Don’t hesitate to subscribe for less than $ 5
here to benefit without limits and improve your skills.

Add a comment

Related posts:

The Longing Towards

On a messy journal of notes, images, and words, a treasure opened up its hidden doors to recall the divine calmness from memorabilia, my thirsty soul closed eyes, longing the wanderlust marshes…

ENAMORADOS

Ainda fresca a tinta do soneto, Entrega à sua amada a fina escrita. Ela lê d’olhos baixos, mas se agita Surpreendida pelo último terceto. Ali revela quanto houve secreto O amor que até então foi só…

Secure Your Django Application

Security is the most precious part of any application or website. A sensuous developer always focuses on security. If you're developing any web-app using Django, you must follow the procedures…