Running Python in background on OS X

后端 未结 5 1886
广开言路
广开言路 2020-12-04 11:27

Is there any way to keep my Python script (with an endless \'while\' loop) running in the background on OS X? Also, for the same purpose, is there any way to have \"autorun\

5条回答
  •  春和景丽
    2020-12-04 12:28

    See this question for ways to daemonizing python scripts on Unix like systems: Python Daemon Packaging Best Practices

    Of course you can always run the script in the background as mentioned by kindall if that is all you need.

提交回复
热议问题