On Mon, Jan 11, 2010 at 2:00 PM, Zabin <zabin.faris...@gmail.com> wrote:
<snip>
> and just wondering- whats the drawback of using os.system() command

Forgetting to properly escape your input. Simple example:

filename = "foo bar.txt"
os.system("rm "+filename) # uh-oh, we deleted 'foo' and 'bar.txt' instead

The `subprocess` module makes escaping unnecessary.

Cheers,
Chris
--
http://blog.rebertia.com
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to