Page 1 of 1

run celx skript in background

Posted: 23.06.2009, 17:26
by Dandelion
Hi,

is it possible to have a celx script run in the background all the time doing some calculations and making an output now and then?

Re: run celx skript in background

Posted: 23.06.2009, 19:07
by selden
That should work, so long as the script calls wait() every few seconds.
If it doesn't give control to Celestia often enough (by calling wait) then Celestia will terminate it.

Re: run celx skript in background

Posted: 24.06.2009, 13:01
by Dandelion
So if the calculation takes to long Celestia would take over again?

Re: run celx skript in background

Posted: 24.06.2009, 18:22
by selden
That's right.

Also, only one Celx script can run at a time.
If you invoke another one (e.g. click on a script's icon) the one currently running will be terminated.