Running a Python script in the background on macOS Big Sur

I’d like to use a cron job to run a task which involves a python script.

The bash script for the task looks about like:


python ./ &

Which is called via crontab like:

* 8 * * * ./

This works perfectly for my needs, except this pesky icon when appears in the dock and steals the current input device focus, interrupting anything I might be typing when the task fires.

Screen Capture: Python icon

Is there a way to tell python to run in the background, similar to having run the python command via