Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This is the subject matter of a whole library of books, so I will just give an introduction here :-) You can basically start scripts directly and then have multiple options to do this in a way that they keep running in the background.</p> <p>If you have certain functionality that needs to run on regular moments, you would do this by scheduling it:</p> <ul> <li>Windows: Windows Scheduler or specific scheduling tools</li> <li>Linux: <a href="https://en.wikipedia.org/wiki/Cron%20Cron" rel="nofollow noreferrer">Cron</a></li> </ul> <p>If your problem is that you want to start a script without it closing on you while SSH'ing into Linux, you want to look into the "screen" or "tmux" tools.</p> <p>If you want to have it started automatically this could be done by using the "At Startup" as you point out and Linux has similar functionalities, but the preferred and more robust way would be to set up a service that is better integrated with the OS.</p> <ul> <li>Windows: <a href="https://stackoverflow.com/questions/32404/can-i-run-a-python-script-as-a-service-in-windows-how">Windows Service</a></li> <li>Linux: <a href="https://en.wikipedia.org/wiki/Daemon_%28computing%29%20Daemon" rel="nofollow noreferrer">Daemon</a></li> </ul> <p>Even more capabilities can be yielded by using an application server such a Django</p> <p>Tomcat (see comment) is an option, but definitely not the standard one; you'll have a hard time finding support both from Tomcat people running Python or Python people running their stuff on Tomcat. That being said, I imagine you could enable CGI and have it run a Python command with your script.</p> <p>Yet, instead of just starting a Python script I would strongly encourage you to have a look at different Python options that are probably available for your specific use case. From lightweight web solutions like <a href="http://flask.pocoo.org/" rel="nofollow noreferrer">Flask</a> over a versatile networking engine like <a href="http://twistedmatrix.com/trac/" rel="nofollow noreferrer">Twisted</a> to a full blown web framework like <a href="https://www.djangoproject.com/" rel="nofollow noreferrer">Django</a>.</p> <p>They all have rather well-thought-out deployment solutions available. Look up <a href="http://webpython.codepoint.net/wsgi_tutorial" rel="nofollow noreferrer">WSGI</a> for more background.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload