Posts: 2
Joined: Aug 2015
Reputation:
0
2015-08-04, 17:14
(This post was last modified: 2015-08-04, 17:14 by leeeng.)
I have just started to produce an add-on that runs a process in command line. this process can take up to 30 mins to complete. At the moment I get the "Working" information box in the corner. Is there a way of making this command line process run in the background so I can keep using the Kodi? I know the process that i am running is not processor hungry. I am running Kodibutu.
Any help on this would be grate.
Posts: 1,088
Joined: Nov 2012
Reputation:
51
I would guess your python script is blocking because you are using the call() method rather than Popen(). Perhaps showing the code itself would help here.
If the CLI itself is blocked, then you may want to add an ampersand (&) to the end of the command. Doing this would make your process run in the background. More technically the command is forked and run asynchronously in a separate sub-shell.
Posts: 2
Joined: Aug 2015
Reputation:
0
Thank you both of you
Karnagious - putting the ampersand at the end worked perfect.