0

I want to create communication between different scripts using a named pipe. I read several examples but in these all examples strings are written to pipe.

So my question is how can I write a script to pipe in c? Should it be anything like this?

write(w_fd,"/.script")

and what is about reading from pipe?

Benjamin Gruenbaum
  • 270,886
  • 87
  • 504
  • 504
check
  • 39
  • 5
  • What does it even mean "writing a script to pipe"? – Benjamin Gruenbaum Apr 12 '15 at 20:29
  • possible duplicate of [How to send a simple string between two programs using pipes?](http://stackoverflow.com/questions/2784500/how-to-send-a-simple-string-between-two-programs-using-pipes) – MaxVT Apr 12 '15 at 20:37
  • I mean I dont write a string like "hello" into a pipe, but a script, which should be executed. For example I have a master script and several other scriptes, which send a command to a mster script. – check Apr 12 '15 at 20:39

0 Answers0