Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In this post there is described how to start a program and then to send data to the stdin of the program (with FIFOs). But what to do if the program is already running, and I cannot re/start the program?

share|improve this question

closed as not a real question by Zoredache, voretaq7 Nov 11 '12 at 3:20

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Operating System? Type of program? – Chris S Jul 26 '12 at 13:17

I once wrote a program to do the reverse (monitor output of an already started program). It's not a simple operation; it relies on using ptrace() to attach to the process and intercept system calls. When you detect a read() system call, inject the data.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.