How to use crontab in Linux and Mac os with Python

(Last Updated On: January 23, 2019)
Learn the Secret

Get  our 2 Free Books

Get these now which land directly to their inbox.
Invalid email address

 

I am also using this as a glorified scheduler for my current Python scripting. I run 2 crypto currency strategies among others. This technique can run on Linux and Mac OS

IMPORTANT: I have come to conclusion not to rely on crontab. It seems to be unreliable https://stackoverflow.com/questions/47219945/monthly-cron-job-is-not-reliable

I just resorted to relying on the appropriate Python schedule packages which have proven to work 100% of the time.

Note that crontab is not on Windows which needs to be Linux or Mac OS compliant operating systems

I have included the zip of Python source files displayed in my video

https://code.tutsplus.com/tutorials/managing-cron-jobs-using-python–cms-28231

crontab <– download this Zip of Python source code

Notes:

Reduce console in your Python script eg. with print

Dump all output into text files as hinted in this tutorial but ensure you have monitoring to watch your drive space. Dumping into text files will eat up a lot of drive space. This is another form of logging I have pushed over the last few months. You may also want to look into sexy GUI apps to help in text searching in text or log files. This is the same of the game.

I have also created a course on how to debug with logging while developing an automated trading strategy.

I am pushing more Lnux stuff, less Apple Mac OS and Microsoft Windows ’cause we want to make you smarter, more efficient, and save money and time!

 

Other tutorials

https://stackabuse.com/scheduling-jobs-with-python-crontab/

https://serverfault.com/questions/357429/run-cron-job-every-10-minutes-from-440-to-015

http://www.openjs.com/scripts/jslibrary/demos/crontab.php <— CronTab Code Generator


 

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!
This entry was posted in Quant Development and tagged , , , , , on by .

About caustic

Hi i there My name is Bryan Downing. I am part of a company called QuantLabs.Net This is specifically a company with a high profile blog about technology, trading, financial, investment, quant, etc. It posts things on how to do job interviews with large companies like Morgan Stanley, Bloomberg, Citibank, and IBM. It also posts different unique tips and tricks on Java, C++, or C programming. It posts about different techniques in learning about Matlab and building models or strategies. There is a lot here if you are into venturing into the financial world like quant or technical analysis. It also discusses the future generation of trading and programming Specialties: C++, Java, C#, Matlab, quant, models, strategies, technical analysis, linux, windows P.S. I have been known to be the worst typist. Do not be offended by it as I like to bang stuff out and put priorty of what I do over typing. Maybe one day I can get a full time copy editor to help out. Do note I prefer videos as they are much easier to produce so check out my many video at youtube.com/quantlabs