Hi, i have written programs in python before but it seems that when i try running some on my DB 8000 it doesn't like some of the functions in which i am using. I tried to create a simple ping plugin for my own testing use and it works when i try it on winpython but when i put it onto the dreambox it comes up with a blue screen everytime i run that part of the plugin.
Basically everytime the user presses the blue button the following is to be called:
(the code below actually does get called)
def ping(self):
import subprocess
host = "www.google.com"
ping = subprocess.Popen(
["ping", host],
stdout = subprocess.PIPE,
stderr = subprocess.PIPE
)
out, error = ping.communicate()
print out
Alles anzeigen
Ok excuse the bad indentation there, the file is properly indented but that is what is called when the blue button is pressed. If i remove that code from my plugin, the plugin will compile and load properly on the dreambox, so why does my ping code not work? Does the dreambox not like import subprocesses or something? If not how could i go about doing a basic ping example on a dreambox? I'll have to get used to knowing which functions work on a dreambox and which don't from my normal way of programming within the language.
Thanks