Re: subprocess module

2008-07-14 Thread John Mechaniks
On Jul 14, 7:44 pm, Peter Otten <[EMAIL PROTECTED]> wrote: > John Mechaniks wrote: > > On Jul 14, 12:34 pm, Peter Otten <[EMAIL PROTECTED]> wrote: > >> John Mechaniks wrote: > >> > from subprocess import call > >> > call(['ls', &#x

Re: subprocess module

2008-07-14 Thread John Mechaniks
On Jul 14, 12:34 pm, Peter Otten <[EMAIL PROTECTED]> wrote: > John Mechaniks wrote: > > from subprocess import call > > call(['ls', '-l']) > > > How do I get the result (not the exit status of the command) of "ls - > > l" i

subprocess module

2008-07-14 Thread John Mechaniks
from subprocess import call call(['ls', '-l']) How do I get the result (not the exit status of the command) of "ls - l" into a variable? -- http://mail.python.org/mailman/listinfo/python-list