Is there a way to know if a script is still running on a remote device?
I would like to start my script on a remote device with:
gdrbridge setip {remote device IP}
gdrbridge play {gideros project filename}
and then have a loop returning the output as long as the script is running remotely, by calling:
gdrbridge getlog
But there seems to be no way to know when the script has finished, to end the loop?
The only workaround I'm using is to end the script always with a defined print "script ended" and parsing for either this or an error message to stop the loop.
Is there a better way to know when a remote script has finished?
Comments
Well the problem is that actually you can't know how/when script is executed inside Gideros app. As there is no concept of script finished executed. Only if app is running or not.
So I think marking/sending specific output command is the only way, sorry
See http://www.giderosmobile.com/forum/discussion/4379/sublime-text-3-highlights-and-autocomplete#Item_5 for example.