Hi there! How do i create scheduled task from python script? Like a crontab:
cron = CronTab(user=True)
job = cron.new(command='python3 ~/send_to_bot.py', comment = dt_val)
job.day.on(int(dt_val[0:2]))
job.month.on(int(dt_val[2:4]))
job.hour.on(int(dt_val[5:7]))
job.minute.on(int(dt_val[7:9]))
cron.write()