title: redis bulk import using --pipe
body: <p>I'm trying to import one million lines of redis commands, using the <code>--pipe</code> feature.</p>
  
  <p><strong>redis_version:2.8.1</strong></p>
  
  <p><code>cat file.txt | redis-cli --pipe</code></p>
  
  <p>This results in the following error:</p>
  
  <p>Error reading from the server: Connection reset by peer</p>
  
  <p>Does anyone know what I'm doing wrong?</p>
  
  <p><code>file.txt</code> contains, for example, </p>
  
  <pre><code>lpush name joe
  lpush name bob
  </code></pre>
  
  <p><strong>edit</strong>: I now see there's probably a special format(?) for using pipe mode - <a href="http://redis.io/topics/protocol" rel="noreferrer">http://redis.io/topics/protocol</a> </p>