log("ERROR", "Password reset failed.\n{0}{1} generated the
following error: {2}".format(p4, cmd, stderr))
except OSError as err:
log("ERROR", "Execution failed: {0}".format(err))
Thanks,
Rusty
On Tue, Sep 15, 2009 at 6:37 PM, Chris Rebert
hris Rebert wrote:
> On Tue, Sep 15, 2009 at 5:07 PM, Chris Rebert wrote:
> > On Tue, Sep 15, 2009 at 4:01 PM, Russell Jackson
> > wrote:
> >
> >> Attempted code in Python 3: (Doesn't work either)
> >
> >> cmd = ' passwd {0}'
saw
in the docs, and the fact that it didn't complain about that part, but I'll
try the close():
Thanks,
Rusty
On Tue, Sep 15, 2009 at 4:24 PM, Rhodri James
wrote:
> On Wed, 16 Sep 2009 00:01:17 +0100, Russell Jackson <
> ru...@rcjacksonconsulting.com> wrote:
>
> H
Hi,
I have the following code that works fine in Python 2.x, but I can't seem to
get it to work in Python 3 with Popen. Can you please tell me how to get the
same functionality out of Python 3? The gist of what I doing is in the
setpassword function. I have tried numerous ways to get this to work,