On Jun 19, 11:49 am, [EMAIL PROTECTED] (Aahz) wrote: > In article <[EMAIL PROTECTED]>, > Matt Nordhoff <[EMAIL PROTECTED]> wrote: > > > > >You're supposed to use the subprocess module. > > Really? Sez who? > > $ python > Python 2.3.4 (#1, Feb 2 2005, 12:11:53) > [GCC 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)] on linux2 > Type "help", "copyright", "credits" or "license" for more information.>>> > import subprocess > > Traceback (most recent call last): > File "<stdin>", line 1, in ? > ImportError: No module named subprocess > -- > Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ > > "as long as we like the same operating system, things are cool." --piranha
The subprocess module supercedes os.popen*, os.system, commands and a few others in Python 2.4+. Thus, those others are deprecated. See the docs here: http://docs.python.org/lib/module-subprocess.html Mike -- http://mail.python.org/mailman/listinfo/python-list