Task Schedule crontab

crontab command -u: Specify a user, the current user without the -u option -e: Develop planned tasks -l: List scheduled tasks -r: Delete scheduled tasks View the configuration file for crontab: [root@localhost ~]# cat /etc/crontab SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root # For details ...

Posted by frikikip on Thu, 16 Jul 2020 07:27:41 -0700

AppleScript realizes automatic forwarding of SMS

Background: during this period, a colleague needs to log in to my account frequently, and to verify the mobile phone verification code, I need to manually forward the verification code to him every time. I find it very troublesome, so I want to see if there is any way to free my hands, and then I find that AppleScript is such a very useful thi ...

Posted by randydg on Thu, 25 Jun 2020 01:51:38 -0700

Handling mining zombie network dota3 Trojan attacks under CentOS7

In the early morning, I received alert text messages from Ali cloud server.Emergency security incident: access malicious download source, access malicious download IP.Instant wake up, immediately get up to handle. First log in to Aliyun backstage, check the security center's warning mascot, found several records: Parent process path: /usr/bin ...

Posted by lur on Wed, 20 May 2020 09:57:35 -0700

Python -- realize efficient port scanning

Please indicate the source of Reprint: http://blog.csdn.net/l1028386804/article/details/78996095 This paper is based on< Python -- Python nmap installation and common method description >To build an efficient port scanner case, please read the blog first< Python -- Python nmap installation and common method description>, Here, we ...

Posted by jesirose on Sat, 02 May 2020 14:55:33 -0700

Regular backup of linux mysql

The project needs to back up the database regularly. Here are your own operation notes 1. Check the disk space    # df -h Filesystem Size Used Avail Use% Mounted on /dev/vda1 40G 3.6G 34G 10% / tmpfs 16G 0 16G 0% /dev/shm This is my current situation of linux server. I don't know why it's like this (I'm ...

Posted by joozt on Sat, 02 May 2020 07:56:12 -0700

Linux server memory monitoring - check every hour & over send mail & restart the most expensive Java program

Introduction and advantages Using this script, you can judge whether the system memory usage exceeds the set percentage It can restart the program when the warning value is exceeded It can record the restart process and send the specific LOG mail to the designated addressee Crontab schedule can be set to run every other period of time prepara ...

Posted by iamthebugman on Mon, 27 Apr 2020 02:17:59 -0700

The implementation of mysql timing task

1. Requirements: from 10:00 p.m. to 5:00 a.m. every day, execute the stored procedure regularly every 10 minutes. 2. Implementation mode: there are two ways to achieve it: One is more conventional. Using mysql event timing task, first introduce the related commands of event timing task in mysql, To see if event is enabled: ...

Posted by elibizif on Wed, 01 Apr 2020 15:46:14 -0700

Custom systemctl management service

Brief introductionsystemd is to control power on service, power on level and other functions by means of management unit.In / usr/lib/systemd/system directory, there are various unit files, including service unit with service suffix, power on level unit with target suffix, etc. here are the files about service suffix. Because system D needs t ...

Posted by baennaeck on Thu, 06 Feb 2020 01:46:46 -0800

Linux-07-scheduled tasks

In Linux, the timing task is executed by crond program. It is started by default after power on like SSH, network, rsyslog and sysstat. By default, crond checks every other minute to see if there are any tasks to perform. If you have special needs, such as executing once a second, you need to write daemons. View the contents o ...

Posted by rascle on Sun, 05 Jan 2020 09:36:49 -0800

Laravel task scheduling

Here is an example of Laravel task scheduling. For related methods, please refer to: http://laravelacademy.org/post/8484.html 1. make:command generate task php artisan make:command MigrateData After executing the above command, a new Commands directory will be created in the Console directory, which contains a MigrateData. ...

Posted by alan007 on Wed, 01 Jan 2020 12:44:13 -0800