Is there an alternative function to start a process?
#1
Question 
Hello to all .)

I found a big problem inside the Python 2.4 for XBMC or I oversee something
important ....

I write a script to rip a dvd ...

For that reason there should be startet 2 processes with maximal power..

I could start a process inside xbmc as subprocess of xbmc python .

sys.platform.startswith('linux')
preview_command = 'xterm -e /bin/bash &'
status = os.system("%s" % (preview_command))

In this case the xterm terminal is started minimized .... and the script runs
but slowy ....

As soon I type in a command in the terminal (xterm) the hole script runs
very slow and the command to execute needs 15-20 minutes longer
as it woult in xterm I startet over my Desktop .....
For example a dd copy running this way neeeds 25 Minutes longer than
direct startet inside the Desktop


I gueess the problem of the slow responce is the kind the xterm was startet
(inside xbmc -> Python)

Is there a other way to start a process independet inside Python of xbmc with the same interactive power like a shell from the Desktop ?


I found also there is no way to run function os.command
inside Python of XBMC


With the best greetings from switzerland
Hans
Reply
#2
System.Exec() is a built-in.

so xbmc.executebuiltin( "System.Exec(exetoexec)" )

May have a better perfomance than called inside python ,.-)
Reply
#3
Where is the function to start a processs with maximal power inside xbmc

same result : standalone .... 1.5 minutes to complete
startet over xbmc same action needs over 15 Minutes ...

If I have to wait every startup of a process 15 minutes or longer than over
a terminal (same job in a minute ) ... the hole thing is a joke ..

Ok were is the python function to start a process with maximal power HuhHuhHuhHuh

The command that would be executed is a preview ( a few secounds) of dvd


Command line direct :

transcode -i /dev/sr0 -c 1-300-o /dvdrip/preview --export_prof vcd


This command could be pastet direct into a terminal of your desktop ide (gnome/kde)


Now the same startet over python : ..... needless to say .... you wait forever to complete


import xbmc, xbmcgui
import os, sys, thread, time
system = os.uname()

if system[0] == 'Linux':
print 'script is supporting Linux'
command = "System.Exec(transcode -i /dev/sr0 -c 1-300 -o /dvdrip/preview --export_prof vcd)"
xbmc.executebuiltin(command)


there is difference of over a few houndreds %
Reply

Logout Mark Read Team Forum Stats Members Help
Is there an alternative function to start a process?0