Re: [Tutor] Sigh first real python task

2012-09-12 Thread Mike S
Sorry, hit send a bit too fast there: here is the output: session setup failed: NT_STATUS_LOGON_FAILURE /bin/sh: put: command not found On Wed, Sep 12, 2012 at 8:14 PM, Steven D'Aprano wrote: > On 13/09/12 13:06, Mike S wrote: > > Now, I'm having to change the remote hos

[Tutor] Sigh first real python task

2012-09-12 Thread Mike S
So, trying to modify a python script that when invoked copies a local file to a remote host. Previously this was done with only needing to pass a username. try: ret = subprocess.call("smbclient //metricsmachine/reports/; put %s\" -U metrics%%" % (fileName), shell=True) if ret