As long as your program reads it's input from the parameters passed to its main\entry-point, then you would just use what ever the pipe command for your particular shell is. If you don't know what that is, then let us know what platform you are on and we can tell you.