2009-09-18, 21:50
Just dipping my toes in the water of python while trying to get my backlighting relays switching via XBMC.
I've cobbled together a very simple pyhton script that pops a notification on xbmc's gui then runs a bash script which has the commands to en/disable some usb relays that control my lighting.
Running the python script from the terminal works fine, but launching via XBMC doesn't seem to run the bash script.
xbmc.log shows nothing and says the script completed without error, and nothing gets displayed onscreen ( apart from the desired notification )
Here is the offending line;
Should I be using a different function to launch something like this ?
Cheers for any pointers.
I've cobbled together a very simple pyhton script that pops a notification on xbmc's gui then runs a bash script which has the commands to en/disable some usb relays that control my lighting.
Running the python script from the terminal works fine, but launching via XBMC doesn't seem to run the bash script.
xbmc.log shows nothing and says the script completed without error, and nothing gets displayed onscreen ( apart from the desired notification )
Here is the offending line;
Code:
import os
os.system('/home/xbmc/shellscripts/atmoon.sh')
Should I be using a different function to launch something like this ?
Cheers for any pointers.