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
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
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',