[haiku-bugs] Re: [Haiku] #12298: Running shell commands from an app fails

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Tue, 01 Sep 2015 18:25:18 -0000

#12298: Running shell commands from an app fails
-------------------------------------+----------------------------
Reporter: humdinger | Owner: axeld
Type: bug | Status: new
Priority: blocker | Milestone: R1/beta1
Component: Servers/launch_daemon | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
-------------------------------------+----------------------------

Comment (by pulkomandy):

I haven't tried it, but normally you would use dup2 for that (and yes,
they are inherited through fork):
http://stackoverflow.com/questions/17518014/using-dup2-to-redirect-input-
and-output

--
Ticket URL: <https://dev.haiku-os.org/ticket/12298#comment:19>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: