Tag:crontab

  • Crontab specified execution user under CentOS

    Time:2020-4-1

    Under CentOS, crontab can be configured to execute tasks regularly. The execution body can be a system command or a script written by itself, and users can be assigned to execute it. There are two ways to configure crontab.Method 1. Use the crontab command, for example, to add a new or edit an existing one, […]

  • Detailed explanation of crontab task cycle plan under CentOS

    Time:2020-3-25

    Crontab task cycle plan Format: * * * * *  command Minute (0-59), hour (0-23), day (1-31), month (1-12), week (0-6) Explain: 1. Asterisk matches all characters 2. An integer, must match exactly 3. Two integers separated by dashes that match the range of values. 4. The time range is followed by a ramp and […]

  • Thinking about a timing task configuration error

    Time:2020-2-5

    background A business person said that the system could not log in, so the programmer tried to log in the system successfully. He was confident that “my code is OK”, so he asked the business person to try again. Then the business personnel is landed successfully, but is too laggy for the whole system. This […]

  • Two methods for crontab implementation to execute scripts every several days

    Time:2020-1-13

    Preface In our work, we often encounter the situation of how many days / hours / minutes to execute a script or a command. If the program is run every hour and every minute, it may be easier to implement in crontab. Here are some examples and the format description of crontab: Specific examples: #Script […]

  • MS timer for swoole learning (7)

    Time:2019-12-30

    1、 Set timer We usually use the timer that comes with Linux system when we deal with regular timing taskscrontabTo execute, but sometimes it can’t meet our business requirements and can’t reach the millisecond level. However, swoole can help us to implement it. Let’s see swoole official document entry Guide – > fast start – […]

  • Linux regular clearing log and Catalina log partition

    Time:2019-12-4

    Trampled pit In addition to the development work, I also have a trivial work, which is to regularly check the operation of Linux machines related to the website every day.At the beginning, Linux machines were running normally, and I was loose a lot, from daily inspection to one or two inspections a week later.Later, the […]

  • Implement crontab like timing task in dotnet core

    Time:2019-11-22

    In the previous section, you need to implement simple timing tasks in some time periods in the business, similar to crontab scheduling. Because the business will be placed in the docker, you don’t want to use crontab directly. After searching the Internet, you can find an open-source implementation of pomelo.aspnetcore.timedjob, which is simple to use, […]

  • Detailed explanation of cron expression

    Time:2019-11-9

    Crontab About crontab Crontab commands are commonly used in UNIX and UNIX like operating systems to set instructions that are executed periodically. The command reads the instructions from the standard input device and stores them in a crontab file for later reading and execution. It comes from the Greek word Chronos (χ ρο), which originally […]

  • Cron expression

    Time:2019-11-6

    Crontab About crontab Crontab commands are commonly used in UNIX and UNIX like operating systems to set instructions that are executed periodically. The command reads the instructions from the standard input device and stores them in a crontab file for later reading and execution. It comes from the Greek word Chronos (χ ρο), which originally […]

  • How does CentOS set crontab to visit a web site regularly?

    Time:2019-10-23

    Linux crontab function syntax If you want to visit a website every 3 minutes, you can use: crontab -e Then type the following command: */3 * * * *  curl  http://www.baidu.com Where */3 means access every 3 minutes. Curl returns the content of HTTP (HTML) to the output.

  • Docker deployment of laravel application queue & Task Scheduling

    Time:2019-10-19

    In the last article, we wrote how to deploy laravel application with docker, and then in this article, we wrote how to deploy the application withqueueas well astask schedulingThe laravel application of. First of all, let’s prepare ourdocker/app.cronfile Note that a blank line at the end of the file is required. #!/usr/bin/env bash PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin * […]

  • Detailed Explanation of Linux Timing Task at and Crontab Commands

    Time:2019-8-18

    There are two ways to perform tasks on time under Linux: at command and crontab service. The detailed usage of these two commands is sorted out. I hope you can have a deeper understanding after learning. (1) at command If we just want a specific task to run once, then we need to use the […]