Behavior of os.system() with redirection

Mark Aristotle_00 at
Thu Jan 3 12:20:12 EST 2002

> However, I would not recommend to invoke /bin/ls through
> os.system. Instead, use os.listdir.

Thanks for your response.  In reality, I'm using a different program
(another script) written in R.  Since I haven't looked into higher
level interfaces for Python/R, I'm just using the system call.  This
was just a toy example to prevent posting 100s of lines of codes when
that had the essence of the problem.


More information about the Python-list mailing list