maybe you should look at subprocess module

I have one expamle, this is Linux though

 >>> import subprocess as sp
 >>> p1 = sp.Popen(["ls", "-l"], stdout = sp.PIPE)
 >>> p2 = sp.Popen(["wc", "-c"], stdin = p1.stdout, stdout = sp.PIPE)
 >>> print p2.stdout.read()
     226

hth, Daniel

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to