How to use crontab in Linux and Mac os with Python

Learn the Secret

Get  our 2 Free Books

Get these now which land directly to their inbox.
Invalid email address
(Last Updated On: January 23, 2019)


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


crontab <– download this Zip of Python source code


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



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!
Scroll to Top