title: Is there any difference in using subprocess.check_output() in Windows and OS X?
body: <p>I want to use <code>subprocess.check_output(cmd, shell=True)</code> to execute <code>cmd</code> in Windows. It turns out that there is no output after executing this statement, but it works in OS X. I want to know if there is some problem when using <code>shell=True</code>. Here's my original source.</p>
  
  <pre><code>paper_name = sheet[location].value
  name = '"' + paper_name + '"'
  cmd = py + options + name + ' -t'
  out_str = subprocess.check_output(cmd,shell=True)
  pdb.set_trace()
  #a = out_str.split('\n')
  fp_str = to_str(out_str)
  a = fp_str.split('\n')
  </code></pre>
  
  <p>cmd is like below
  <a href="https://i.stack.imgur.com/35VR0.jpg" rel="nofollow noreferrer">cmd</a></p>