On 13/09/12 04:06, Mike S wrote: > ret = subprocess.call("smbclient //metricsmachine/reports/; put %s\" -U > metrics%%" % (fileName), shell=True) Isn't there a mismatched quote in there? -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/