[python-win32] Is there a Python win32 RunAs equivalent where youcan send a password?

R. Alan Monroe amonroe at columbus.rr.com
Thu Mar 18 18:32:08 EST 2004


> I haven't been following this, but I see one problem you will have is you
> need to do a 'pin.close()'.  In general you don't know when a processes will 
> send it's output due to buffering, and you might not have any control.  (So 
> the 'flush' will send the input, but when will the output be sent?)  You 
> might try changing your 'flush' to a 'close' and see what happens.

Will try that tomorrow, but I'm not optimistic. It seems like the
runas command is locked down to prevent piped input. It actually gives
an error about being unable to change the echo mode. You get the same
error if you try to redirect its input with a less than character at
the commandline.

Alan




More information about the Python-win32 mailing list