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

Aliyun ECS Clearing Hidden Mining Procedure

Problem Description: An Aliyun server has received more than 95% continuous alarm CPU usage. But there is only one MySQL that is not frequently used in the business on this machine. There is no other MySQL. Normally, the CPU can't reach such a high level. Looking at the alarm information, we found that there was an implanted m ...

Posted on Tue, 14 May 2019 23:17:33 -0700 by Yamakazi

Playing Raspberry Pie Creates an Intelligent Voice Alarm Clock for Girlfriend

Preface Recently, I have learned more or less about Internet of Things (IOT) related technology in the work of Smart Factory. So there's a whim to think about what you can do. I happened to have heard some stories about raspberry pie before, so there's such an alarm clock. It should be noted that before reading this article, you should be at l ...

Posted on Sat, 11 May 2019 10:27:33 -0700 by lemmin

Redis unauthorized access and security group vulnerabilities triggered kerberods to mine

Reference documenthttps://www.freebuf.com/articles/web/94237.htmlhttps://www.4hou.com/vulnerable/13843.htmlhttps://laucyun.com/17e194c26e4554cab975aae760bad553.html phenomenonServer CPU soarsFailure time 2019.4.10 17:50top and htop view information can only see one cpu information, default is 4 Troubleshootingcrontab abnormality was found by i ...

Posted on Fri, 10 May 2019 18:22:21 -0700 by TripleDES

Git Learning - > How to automatically and regularly copy Gitlab backup files to remote servers through Shell scripts?

Background My previous blog git Learning --> How does Gitlab do backup recovery and migration? (Address: http://blog.csdn.net/ouyang_peng/article/details/77070977 It has written clearly how to use Gitlab automatic backup function. But the previous backup function was just to backup to the server where the Gitlab service was running. If ...

Posted on Wed, 09 Jan 2019 10:39:11 -0800 by stringfield

Go Actual Warfare - Goang performs cron job timing tasks (robfig/cron and jasonlvhit/gocron)

Life goes on, go on!!! Today, I'd like to share with you the timing task in golang, mainly introducing the use of open source libraries on two github s. crontab under Linux Crontab commands are common in Unix and Unix-like operating systems and are used to set periodically executed instructions. This command reads instructions from standard ...

Posted on Mon, 07 Jan 2019 14:48:11 -0800 by phpmash