Reputation: 5933
Given this program named foo.py
#! /usr/bin/env python
foo = input('input foo: ')
print(foo)
How do I run this from foo_test.sh
?
Upvotes: 0
Views: 46
Reputation: 5933
I figured it out so thought I'd post it. Simple, of course:
% echo 'foodata' | ./foo.py
That does the job.
Upvotes: 2