cross platform libraries

diffuser78 at gmail.com diffuser78 at gmail.com
Fri May 5 15:48:19 CEST 2006


I went to this webpage

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/360649

Isn't it supposed to run on the network and close the connected
machine.

Every help is appreciate,


Dennis Lee Bieber wrote:
> On 4 May 2006 09:57:15 -0700, diffuser78 at gmail.com declaimed the
> following in comp.lang.python:
>
> > I am using python on a linux terminal.
> >
> > I want to shutdown a remote windows box. I found a script which does
> > something like this. My question is can we use windows libraries in
> > linux as follows ....
> >
> > import win32api
> > import win32con
> > import win32netcon
> > import win32security
> > import win32wnet
> >
> 	That set... HIGHLY UNLIKELY... They all rely upon having the M$
> kernel DLLs available...
>
> 	Now, if the remote box is running a telnet server, you might be able
> to telnet over (logging in as the boxes admin account) and initiate a
> shutdown from it... (I seem to have a "shutdown.exe" on my system).
> --
> 	Wulfraed	Dennis Lee Bieber		KD6MOG
> 	wlfraed at ix.netcom.com		wulfraed at bestiaria.com
> 		HTTP://wlfraed.home.netcom.com/
> 	(Bestiaria Support Staff:		web-asst at bestiaria.com)
> 		HTTP://www.bestiaria.com/




More information about the Python-list mailing list