How would the Python pipes module do a 'cat'
I am trying to do this in python:

    cat foo | hadoop fs -put - bar/foo

I have looked at the python documentation and played around with it in the shell, but I do not understand how to kick it off without an output file, like the example.


    >>> t = pipes.Template()
    >>> t.prepend('cat foo', '.-')
    >>> t.append('hadoop fs -put - bar/foo', '-.') # what next


Clearly I am missing something.


How would the Python pipes module do a 'cat'
===

I am trying to do this in python:

    cat foo | hadoop fs -put - bar/foo

I have looked at the python documentation and played around with it in the shell, but I do not understand how to kick it off without an output file, like the example.


    >>> t = pipes.Template()
    >>> t.prepend('cat foo', '.-')
    >>> t.append('hadoop fs -put - bar/foo', '-.') # what next


Clearly I am missing something.

