In article <[EMAIL PROTECTED]>,
Ten  <[EMAIL PROTECTED]> wrote:
                        .
                        .
                        .
>You can do this in various ways, ranging from the very simple and not very good
>
>from commands import getoutput
>
>x=getoutput(command)
>
>
>- to your more common and better popens.
>
>ie:
>
>import popen2
>
>(stdOut, stdIn) = popen2.popen4(command)
>
>x=stdOut.readlines()
>
>- asynchronously if appropriate.
>
>How are you running the command at the moment?
                        .
                        .
                        .
Why deprecate commands.getoutput()?  Are you merely
observing that it's applicable in fewer circumstances?
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to