crontab timing task does not execute in Linux

Recently, I encountered a case of crontab timing task not executing in linux. I'd like to share it with you to avoid stepping into the pit I encountered. Post the script first In order to facilitate the display, the script has been written into the parameter #!/usr/bin/env bash # 1 output file to log for example: bg # 2 the dest ...

Posted on Thu, 02 Apr 2020 15:24:01 -0700 by playa4real

shell foundation and advanced 01

shell 1. View shell echo $SHELL / root directory /bin Store common commands /boot Store startup files and startup files /dev Store hardware device files and driver files /etc Store system service profile /home Home directory of ordinary users /mnt Directory used to mount usage /var Log directory ...

Posted on Fri, 21 Feb 2020 01:22:51 -0800 by phrater

Linux -- Shell multi machine distributing files and executing commands

It's a very practical tool. First, you need to set up ssh password free communication between machines. There are three documents 1.deploy.conf 2.deploy.sh 3.runRemoteCmd.sh Be careful: The three files are all in / home/hadoop/tools Directory; The first column of the deploy.conf configuration file is the host name of the ser ...

Posted on Mon, 03 Feb 2020 08:00:43 -0800 by jd023

mysql backup and crontab automatic backup under Linux

Using mysql dump of mysql to backup and restore data under liunx The crontab command can help us to automatically and regularly back up the database. Backing up a database #Create backup directory first mkdir -p /var/local/backup cd /var/local/backup #Backup database mysqldump -uusername -ppassword database > databas ...

Posted on Fri, 10 Jan 2020 09:25:06 -0800 by busin3ss

Yundun situation awareness system detects an emergency security event on your server: Mining Trojan

Problem Description: receiving Alibaba cloud's alarm notice Log in to the server to view the process: no process occupying too much CPU was found Check the / etc/ld.so.preload file, which connects to / usr/local/lib/libdns.so [root@SJ-pre-release ~]# cat /etc/ld.so.preload /usr/local/lib/libdns.so Check the / usr/loca ...

Posted on Sun, 29 Dec 2019 08:51:22 -0800 by nystateofmind27

Get some information under a tag of SegmentFault

Preface At present, segment fault has not opened API. In 2017, Gaoyang dada said Planned Even though I didn't use SegmentFault In PHP, I randomly wrote a code to obtain the information under a certain tag, which has no technical content and is used for timing acquisition The purpose is to help solve problems if they can be solved, or to report ...

Posted on Wed, 04 Dec 2019 08:12:52 -0800 by jcanker

SparkStreaming auto restart

The company's real-time streaming pipeline uses SparkStreaming to process data imported into Kinesis.There was a Streaming task termination before and no alarm was notified.Plus, there is currently only one person in the company's big data department. In order to prevent being called by the police one night to restart the service, we decided to ...

Posted on Sat, 30 Nov 2019 03:06:47 -0800 by sapna

Notes for deploying Python scripts in crontab

Sometimes it's good to execute Python scripts manually, but when deployed in crontab of Linux, you will encounter some problems. Recently, you finally have time to sort out the contents of this aspect. In fact, you have stepped on some pits that others have trampled on yourself! Here, I just list some minor problems, experience and energy probl ...

Posted on Tue, 20 Aug 2019 07:46:48 -0700 by barryflood22

[python] Timing Task Framework APScheduler uses

brief introduction APScheduler implements all the functions of Quartz based on a Python timing task framework of Quartz, which is very convenient to use. Tasks based on dates, fixed intervals, and crontab types are provided, and tasks can be persisted. Based on these functions, we can easily implement ...

Posted on Thu, 01 Aug 2019 02:47:04 -0700 by yarin

Linux Contrab Texts Girlfriend at 8:00 a.m.

It is said that programmed apes have no girlfriend== sweat, why should we black our handsome programmed apes? Today we are going to do a wave of Linux Contrab timed tasks to send messages to our girlfriend every day. Here I use the SDK of Ali Bigger's short message. The price of each short message is 0.045 yuan. One dollar is enough for half a ...

Posted on Mon, 03 Jun 2019 18:25:08 -0700 by coolen