Is there a way to read data that is coming into the command-line, straight into another Python script for execution?
You need to read stdin from the python script.
stdin
import sys data = sys.stdin.read() print 'Data from stdin -', data
Sample run -
$ date | python test.py Data from stdin - Wed Jun 17 11:59:43 PDT 2015