Currently my crontab is set to
40 12 * * * /usr/bin/python3 /somepath/script.py
This 'script.py' is a script that uses selenium and runs some web automation. It will open up chrome driver during its execution. When I try to schedule this script with crontab, it does not work, the chromedriver does not open up.
If I just execute the following in a terminal
/usr/bin/python3 /somepath/script.py
the script can execute no problem.
I tried testing crontab with
40 12 * * * /usr/bin/python3 /somepath/test.py >> /somepath/output.txt
and this works as expected as well. In my test.py, I just print 'hi'. Could it be because my script is too complicated so crontab cant run it?