How would I execute a command and have it's output returned as a list or string? For example (in Linux):
os.system("iwconfig")
prints a list of wireless devices to stdout. How can I make Python see those results as a list or string so I can search for certain devices (like wlan0 for example) and their associated info?