title: Pipe no such file or directory
body: <p>I am trying to create a named pipe with C++ and reading it on python. This is my code:</p>
  
  <pre><code>const int MAX_BUF = 1024;
  string wr_string = "Hi.";
  char text[MAX_BUF] = "";
  strcpy(text, wr_string.c_str());
  int fd = open("/tmp/test", O_WRONLY);   // Open the pipe
  write(fd,text,MAX_BUF);              // Write
  close(fd);                                  // Close the pipe - allow the read
  </code></pre>
  
  <p>And I am reading it this way:</p>
  
  <pre><code>import os
  import time
  
  pipe = open("/tmp/OKC_avgprice", "r")
  line = pipe.read() 
  pipe.close()   
  
  print line
  </code></pre>
  
  <p>However, everytime I try to read it this is what I get:</p>
  
  <pre><code>Traceback (most recent call last):
    File "ipc.py", line 4, in &lt;module&gt;
      pipe = open("/tmp/test", "r")
  IOError: [Errno 2] No such file or directory: '/tmp/test'
  </code></pre>
  
  <p>When writing the pipe should be created automatically no? Why is it not found then?</p>
  
  <p>Thanks!</p>