Best way to run python script with Xbian?
|
8th Sep, 2013, 06:46 AM
Post: #4
|
|||
|
|||
RE: Best way to run python script with Xbian?
Yes, the best way would be to write upstart script /etc/init/my_python_script.conf
Code: #!upstart If it should run constantly, respawn will re-start the script if crashed (exited with return code different than 0). If it is just task-like script (should be started - do something - and exit), remove "respawn" a put "task" instead. It will be started with startup of XBian and depending whether it's "task" or not, it will remain running (check with "status my_python_script") or will just start, do the job and stop. If the script is providing some output text, it can be found at /var/log/upstart/my_python_script.log . Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Best way to run python script with Xbian? - Skywatch - 7th Sep, 2013, 07:22 PM
RE: Best way to run python script with Xbian? - namtih - 7th Sep, 2013, 07:59 PM
RE: Best way to run python script with Xbian? - Markamc - 8th Sep, 2013, 05:29 AM
RE: Best way to run python script with Xbian? - mk01 - 8th Sep, 2013 06:46 AM
RE: Best way to run python script with Xbian? - Skywatch - 13th Sep, 2013, 07:37 PM
RE: Best way to run python script with Xbian? - mk01 - 15th Sep, 2013, 09:37 AM
|