InterProcess Communication on MacOSX Lion
问题 I'm trying to figure out how to set up IPC between my custom app and a pre-made program. I'm using MacOSX Lion 10.7.2 and Xcode 4.2.1. It doesn't matter actually what program exactly, since I believe that a similar reasoning may be applied to any kind of external process. For testing purposes I'm using a simple bash script: #test.sh echo "Starting" while read out do echo $out done What I would like to achieve is to redirect input and output of this script, using my app to send inputs to it