title: Running Curl command in python
body: <p>I'm running the following curl command in CGI script in python using os.system call as below:</p>
  
  <pre><code>os.system('curl -u username:password -X PUT example.com/data/data1.txt -T /diskless/desktop/file.txt\r\n')
  </code></pre>
  
  <p>Getting the below error when I run the CGI script:</p>
  
  <blockquote>
    <p>'!rl: Can't open '/diskless/desktop/file.txt')  curl: try 'curl
    --help' or 'curl --manual' for more information.     </p>
  </blockquote>
  
  <p>Any suggestions please?</p>