I try to call a shellscript via the subprocess module in Python 2.6.
import subprocess shellFile = open(\"linksNetCdf.txt\", \"r\") for row in shellFile: s
You need to tell subprocess to execute the line as full command including arguments, not just one program.
This is done by passing shell=True to call
import subprocess cmd = "ls " + "/tmp/ " * 30 subprocess.call(cmd, shell=True)