@XenonFiber I usually do something like this : avoids some of the dopey stuff cat and echo do to string inputs:
$ /path/to/script<<EOFinput1input2input3EOF