Executable pipe entry?

How to run an executable in Xcode using the input to the system? For instance:

echo "abc" | myexec 

I know that I can set the arguments for my executable in the tab Executable [name] Info> Arguments, but there seems to be no possibility of a prefix or something like that.

I see "Use pipe for standard I / O" on the General tab, but how do I work with it? Nothing seems to change.

I am using Xcode 3.2.6.

+4
source share
1 answer

I don’t know if this is the most elegant way, but can you create a script shell assembly step that shunts the output of the first command to a file ( echo "abc" > tempfile ) and then calls your executable with ( myexec < tempfile )?

I haven't found much online yet, except it's a broken link that explains the use of "Use Pipe for standard I / O."

+1
source

All Articles