Re: cross platform libraries
Not much to it. Just follow the SimpleXMLRPCServer example from Python docs and register your shutdown function. Call it using xmlrpclib remotely. Actually, I prefer the telnet method below. Simple and straight forward. -- http://mail.python.org/mailman/listinfo/python-list
Re: cross platform libraries
Through Wine maybe ? Philippe Dennis Lee Bieber wrote: > On 4 May 2006 09:57:15 -0700, [EMAIL PROTECTED] 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 > [EMAIL PROTECTED] [EMAIL PROTECTED] > HTTP://wlfraed.home.netcom.com/ > (Bestiaria Support Staff: [EMAIL PROTECTED]) > HTTP://www.bestiaria.com/ -- http://mail.python.org/mailman/listinfo/python-list
Re: cross platform libraries
Can we have some program in Linux which shuts down the windows computer remotely. Every help is appreciated. Max Erickson wrote: > [EMAIL PROTECTED] wrote in > news:[EMAIL PROTECTED]: > > > 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. > > That code uses the windows libraries on the machine it is run on to > generate a request to the networked machine to shutdown. The code > executes locally and sends the request over the network. > > > Every help is appreciate, > > > > If you have some way of remotely running programs on the windows > machine(ssh, telnet, etc.), you might try pstools: > > http://www.sysinternals.com/Utilities/PsTools.html > > specifically, psshutdown. > > max -- http://mail.python.org/mailman/listinfo/python-list
Re: cross platform libraries
[EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: > 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. That code uses the windows libraries on the machine it is run on to generate a request to the networked machine to shutdown. The code executes locally and sends the request over the network. > Every help is appreciate, > If you have some way of remotely running programs on the windows machine(ssh, telnet, etc.), you might try pstools: http://www.sysinternals.com/Utilities/PsTools.html specifically, psshutdown. max -- http://mail.python.org/mailman/listinfo/python-list
Re: cross platform libraries
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, [EMAIL PROTECTED] 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). > -- > WulfraedDennis Lee Bieber KD6MOG > [EMAIL PROTECTED] [EMAIL PROTECTED] > HTTP://wlfraed.home.netcom.com/ > (Bestiaria Support Staff: [EMAIL PROTECTED]) > HTTP://www.bestiaria.com/ -- http://mail.python.org/mailman/listinfo/python-list
Re: cross platform libraries
Hi Ravi, Do you have any idea how to perform such triigers ? Every help is appreciated. Ravi Teja wrote: > No! That's not the way things work. Such code needs to run locally (in > this case, Windows). You can run this program as a daemon on Windows > with some nice simple remote interface (Eg: xmlrpc) and send a message > to trigger the shutdown. -- http://mail.python.org/mailman/listinfo/python-list
Re: cross platform libraries
No! That's not the way things work. Such code needs to run locally (in this case, Windows). You can run this program as a daemon on Windows with some nice simple remote interface (Eg: xmlrpc) and send a message to trigger the shutdown. -- http://mail.python.org/mailman/listinfo/python-list
cross platform libraries
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 def shutdown(parameters): OTHER CODE HERE Every help is appreciated. -- http://mail.python.org/mailman/listinfo/python-list