• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: set stdin stdout to executables
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: set stdin stdout to executables
      • From: Thierry <email@hidden>
  • Prev by Date: Info request on crashing thread on Crashreport
  • Next by Date: a new guide: How Not To Install Ad-Hoc iPhone Apps
  • Previous by thread: set stdin stdout to executables
  • Next by thread: Re: set stdin stdout to executables
  • Index(es):
    • Date
    • Thread