I have a python script, which works when I run:
python my_script.py --start_time 2020-09-18-09-00 --end_time 2020-09-18-19-00 >> log_file.log 2>&1
I am trying to run in crontab:
14 16 * * * python my_script.py --start_time 2020-09-18-09-00 --end_time 2020-09-18-19-00 >> log_file.log 2>&1
but it fails - It says that I have a SyntaxError in the python script (which didn`t happen while I ran the python script without crontab).
I guess that I have a mistake in the syntax of the crontab command.
I would appreciate any help.