Re: set stdin stdout to executables
Re: set stdin stdout to executables
- Subject: Re: set stdin stdout to executables
- From: Greg Guerin <email@hidden>
- Date: Tue, 24 Feb 2009 11:06:32 -0700
Thierry wrote:
For instance, when running my project, would like to do:
1)
.../myExe < f1 > f2
2)
.../myExe < f1 | myfilter
and see the results on the Run Log window.
What you are basically asking for is an Executable that parses shell
syntax. The best way to do that is to use the shell.
Make an executable that runs /bin/bash, then add the command-line
option -c, and follow that with your entire shell command-string in
another arg.
You should read the man page for bash so you understand exactly how -
c works.
http://developer.apple.com/documentation/Darwin/Reference/ManPages/
man1/bash.1.html
Remember to set up the working dir and environment variables of the
shell, or it won't find 'myExe' or 'f1' correctly.
-- GG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden