"Avell Diroll" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > ##Python Script : > from subprocess import Popen > p1 = Popen(["dmesg"], stdout=PIPE) > p2 = Popen(["grep", "hda"], stdin=p1.stdout, stdout=PIPE) > output = p2.communicate()[0]
I was just trying to learn how to use .communicate() and all of the examples I see have [0] after .communicate(). What is the significance of the [0]? Thanks for your help. Louis -- http://mail.python.org/mailman/listinfo/python-list