title: Subprocess in Python: File Name too long
body: <p>I try to call a shellscript via the subprocess module in Python 2.6.</p>
  
  <pre><code>import subprocess
  
  shellFile = open("linksNetCdf.txt", "r")
  
  for row in shellFile:
      subprocess.call([str(row)])
  </code></pre>
  
  <p>My filenames have a length ranging between 400 and 430 characters.
  When calling the script I get the error:</p>
  
  <pre><code>File "/usr/lib64/python2.6/subprocess.py", line 444, in call
  return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib64/python2.6/subprocess.py", line 595, in __init__
  errread, errwrite)
  File "/usr/lib64/python2.6/subprocess.py", line 1106, in _execute_child
  raise child_exception
  OSError: [Errno 36] File name too long
  </code></pre>
  
  <p>An example of the lines within <code>linksNetCdf.txt</code> is</p>
  
  <pre><code>./ShellScript 'Title' 'Sometehing else' 'InfoInfo' 'MoreInformation' inputfiile outputfile.txt 3 2
  </code></pre>
  
  <p>Any ideas how to still run the script? </p>