title: how to fix sh: 1 curl not found
body: <p>I took a function for python that I have found online </p>
  
  <pre><code>def sh_escape(s):
  return s.replace("(","\\(").replace(")","\\)").replace(" ","\\ ")
  </code></pre>
  
  <p>And I used it with os.system (). It looks like this:</p>
  
  <pre><code>os.system(sh_escape('curl -X PUT http://admin:admin@127.0.0.1:5984/test/')+file+sh_escape(' -d @/home/user/Downloads/') +file)
  </code></pre>
  
  <p><em>file</em> is the name he reads with <em>os.walk()</em></p>
  
  <p>When I run it, I am becoming </p>
  
  <pre><code>sh: 1: curl -X PUT http://admin:admin@127.0.0.1:5984/test/file -d @/home/user/Downloads/file: not found
  </code></pre>
  
  <p>Do you know, where my mistake is ? if I run the command directly in the terminal it works.</p>
  
  <p>Python 3 used</p>