The file test.factor is as follows: <<< USING: io namespaces prettyprint ; input-stream get lines . >>> The file input.txt is as follows: <<< A B C >>> And the command line (and response) is: rupert:~/src/mine/xoxo/factor $ /home/rupert/src/not-mine/languages/factor/factor -quiet -run=none -e="$(cat test.factor)"