I'm designing and application that spawns another processes to handle some specialized work. The application and the process it spawns will communicate through standard input and standard output (and standard error too).
I've been given this same task again and again and I never know how to handle it. The question is simple:
What are some good conventions or standards for writing some protocol using stdin and stdout?
To be a little more specific:
- What protocol design will result in the least errors and be somewhat efficient?
- Are there any common (and familiar) protocols already specifically for stdin and stdout?