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\
I tried launchctl and couldn't make it work in El Capitan and searched around little more and found this post
launchctl
TL;DR
Use shebang line #!/usr/bin/env python or #!/path/to/python on your script
#!/usr/bin/env python
#!/path/to/python
chmod +x test.py nohup /path/to/test.py & ps ax | grep test.py