Bruno Tavares wrote:
> On Tue, 2004-08-10 at 14:14, Dirk Meyer wrote:
>> Bruno Tavares wrote:
>> > I've two questions:
>> >
>> > first; and i know Dischi don't like threads, is it possible to patch
>> > utils.popen3.Popen4 to make it launch all the childs under a group
>> > process id.
>> > This because, since Popen4 launches the command using sh, you loose
>> > control of all the child processes of the shell.
>> 
>> It uses sh if you send the command as string. If you give the args as
>> list, no sh is used.
>
> Well, that solves my particular problema, so, if i split the command
> string by spaces it will work?

Bad hack:
command = 'foo bar something'
popen3(command.split(' '))

Better: (because filenames can conatin spaces)
command = [ 'my_prog', 'param1', 'a param with spaces' ]
popen3(command)



Dischi

-- 
Atheism: A non-prophet organization.


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to