Newbie question: how do I properly end a script?
#23
I had the exact same problem when i was doing my Xinbox script back in the day.

I tried looking for a "temp" xbmc folder where I could store my "pid" file.
A folder XBMC wipes when it starts up etc. This would delete your "pid" file and you wouldn't have the script think its running.

I could never find this so I ended up making my script install/modify the autoexec.py script adding a line to delete the "pid" if exsisits.

so, as soon as XBMC is run. Autoexec.py is executed and deletes the "pid" if it is present.

Give that a go.
Reply


Messages In This Thread
[No subject] - by VictorV - 2010-01-05, 13:04
[No subject] - by brulsmurf - 2010-01-05, 13:35
Maybe not so easy then? - by brulsmurf - 2010-01-06, 21:20
[No subject] - by blittan - 2010-01-06, 21:32
[No subject] - by brulsmurf - 2010-01-07, 11:01
[No subject] - by rwparris2 - 2010-01-07, 13:42
[No subject] - by brulsmurf - 2010-01-07, 14:19
[No subject] - by brulsmurf - 2010-01-07, 22:10
[No subject] - by jmarshall - 2010-01-08, 00:06
[No subject] - by blittan - 2010-01-08, 02:36
[No subject] - by ppic - 2010-01-08, 02:41
[No subject] - by blittan - 2010-01-08, 03:19
[No subject] - by LtChambers - 2010-01-08, 03:58
[No subject] - by brulsmurf - 2010-01-08, 09:07
[No subject] - by blittan - 2010-01-08, 09:56
[No subject] - by brulsmurf - 2010-01-08, 21:13
[No subject] - by blittan - 2010-01-08, 23:56
[No subject] - by ppic - 2010-01-09, 22:20
[No subject] - by brulsmurf - 2010-01-09, 22:26
[No subject] - by ppic - 2010-01-11, 01:31
[No subject] - by brulsmurf - 2010-01-25, 11:03
[No subject] - by matthuisman - 2010-01-26, 01:28
[No subject] - by matthuisman - 2010-01-26, 01:30
[No subject] - by brulsmurf - 2010-01-26, 09:17
[No subject] - by matthuisman - 2010-01-26, 23:28
[No subject] - by brulsmurf - 2010-01-27, 21:32
Logout Mark Read Team Forum Stats Members Help
Newbie question: how do I properly end a script?0