UNIX redirecting python output code example Example: linux echo redirect output to python script import sys data = sys.stdin.readlines()