So my question is the following : How to programmatically scheduling cron in windows using the python-crontab module ? (basically a script.py would schedule tasks by itself)
Environnment : Windows 10
I have already searched through countless posts and articles and found what looked like a solution but I unfortunately seem to dumb to understand it ...
From the python-crontab documentation : https://pypi.org/project/python-crontab/
It says to run something like
tab = CronTab(tabfile='MyScripts.tab')
for result in tab.run_scheduler():
print("This was printed to stdout by the process.")
Unfortunately this doesn't make any sense to me ... What is MyScripts.tab supposed to contain ? What is it even ? What is a .tab file ? What is this code doing ? How can I implement that to my script to reach my goal ?
Ultimately I aim to code a script that will schedule cron on both windows and linux ( linux is done ) without having to enter root or user password or whatever ...
So if somebody understand the code up there or how to execute what I'm trying to do THANK YOU !