|
If you wanted to do this in any programming language, you would need to create a pipe going from the caller to the callee, and then another pipe returning the result from the callee to the caller, this requires quite some coding.
In C I would guess it couldn't be done in less than 40 lines of code.. So if you have the option to just use a simple script and take advantage of the pipe directors in the shell, I would chose that.
|