Tag Archives: crontab

How to use crontab in Linux and Mac os with Python

 

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!