Tag:crontab

  • 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 […]

  • Django development-the use of timing tasks

    Time:2019-7-30

    Today I introduce two ways to use timing tasks in django. Mode 1: APScheduler1) Installation: pip install apscheduler 2) Use: from apscheduler.scheduler import Scheduler from django.core.cache import cache # Instance sched = Scheduler() # Execute every 30 seconds @sched.interval_schedule(seconds=30) def sched_test(): “”” Test-Timing Stores Random Numbers in redis :return: “”” seed = “123456789” sa = […]

  • In those years, we chased the “scheduled scheduling”

    Time:2019-7-28

    Timing SchedulingAs back-end developers, we always encounter business scenarios such as synchronizing batches of data every week, checking the status of the server every half an hour, sending an e-mail to the user at 8:00 a.m. every day, and so on. These scenarios are inseparable from the “timer”, like an alarm clock with a fixed […]

  • Method of notifying users of crontab execution results without sending mail

    Time:2019-7-12

    Symptom A crontab task is set up on a centos7 host, but no mail is prompted after running mail, that is, cron does not send an email notification of the result of the task to the user. Investigation process Check crontab logs CentOS logs are managed by system d, so related logs can be viewed […]

  • Common Command Set of FreeBSD

    Time:2019-5-28

    1. Generally, we use the following three instructions to check whether there is a problem with the network.nslookuppingtraceroute Among them, NSLOOKUP is used to check the relevant settings of dns, Ping is used to check whether the network of oneself and the other side is smooth, and traceroute is used to check the route from […]

  • Solutions to the Invalidity of Crontab for Oracle User under Linux

    Time:2019-5-17

    The old DB server had a shell on it that was placed under the root user to perform an automatic full library backup every Tuesday for oracle. Now DB migrates to a new server and wants to use Oracle users to complete this operation. As a result, the initial test was unsuccessful and the automatic […]